Date formats... dd/mm/yyyy
I have a MDB database ( no surprise there )
the date is stored as a text field ( yes deliberately )
The date is extracted using
SELECT Format$(CDate(Left([FileDateTime],10)),'dd-mm-yyyy') AS gdate FROM Header GROUP BY Format$(CDate(Left([FileDateTime],10)),'dd-mm-yyyy') ORDER BY CDATE(Format$(CDate(Left([FileDateTime],10)),'dd-mm-yyyy')) DESC;
Which works fine in access and returns as 01-04-2004 for 1st April 2004
however when using the same SQL statement through ASP it formats it as 04-01-2004 so 4th January.
Regional settings are set to UK, and everything else is fine...
Any clues or tips anyone..
have tried breaking it down with DatePart also, but it seems to be when it executes the SQL over the Jet.OLEDB connection
|