J
John Whitworth
I am using the following SQL in my ASP webpage, to access an Access
database:
SQLQuery = "SELECT * FROM Church WHERE (LastUpdate BETWEEN #" &
SinceDate & "# AND #" & Today & "#) ORDER BY LastUpdate DESC"
I am getting problems with date formatting. My database has the date
stored as DD/MM/YYYY, and, when the DD component is greater than 12,
this works correctly. However, it seems that when the date component is
12 or less, somewhere along the line, a format of MM/DD/YYYY is being used.
How do I force comparisons to take place in DD/MM/YYYY format with query?
Thanks
John
database:
SQLQuery = "SELECT * FROM Church WHERE (LastUpdate BETWEEN #" &
SinceDate & "# AND #" & Today & "#) ORDER BY LastUpdate DESC"
I am getting problems with date formatting. My database has the date
stored as DD/MM/YYYY, and, when the DD component is greater than 12,
this works correctly. However, it seems that when the date component is
12 or less, somewhere along the line, a format of MM/DD/YYYY is being used.
How do I force comparisons to take place in DD/MM/YYYY format with query?
Thanks
John