Hi all
I want to search a datetime field for all records <= a particular date. To try this, I did this in my method attached to a button:
var typedInput = plugins.dialogs.showInputDialog('Specify a date','up to and including date\n(use date in 25.12.2005 format)');
controller.find()
date_of_purchase = "<= typedInput"
controller.search()
The sybase datetime field "date_of_purchase" is formatted dd.MM.yyyy. My search does not work, it just finds all records - even though there are many records who's purchase date is after what I specify in the dialog.
I have tried date_of_purchase = "<=" + typedInput; - no joy. It still finds all 11 records (only one is before the date that I specify)
What am I doing wrong???
Thanks
Bevil[/i]