Does work! Strangely there doesn’t seem to be any need for the ‘#’ here!
Case 3 - Adding criteira to the end date only:
dateRequest = '<= 06-06-2006|dd-MM-yyyy'
Doesn’t work for exact dates! I can’t figure out how to use the ‘#’ format character here!? I mean I have 6 records for 06-06-2006 (several different times) but I have 0 results!
Remove the space between the <= and the rest of the date. Then it works.
Unfortunately it doesn’t. Using ‘<’ or ‘<=’ with or without the space before the dateRequest, results in the request being completly ignored in the result set (other criteria survive and are honored).
I found this workable solution:
if ( globals.g_Fnts_cDate_2 ) {
tempDate = globals.g_Fnts_cDate_2;
tempDate.setDate(tempDate.getDate()+1); // add one day
var year = tempDate.getFullYear();
var month = tempDate.getMonth()+1;
var day = tempDate.getDate();
dateRequest = '<' + day + '-' + month + '-' + year;
dateRequest += '|dd-MM-yyyy';
}
In this snippet the equality operator still doesn’t work. This is why I add one to the day.
I wonder if this is a Firebird peculiarity!?
Do you know if anyone else is using Firebird with Servoy?
By the way you have experience with Postgre. Ever used it on windows?