monkeymagic2222
Technical User
Hi,
I am using ASP to query a Microsoft Access database.
I have created a form, which allows a user to enter a start date and an end date, in the standard European format of dd/mm/yyyy. The ASP then queries my database to pull out any entries that are greater than the start date and less than the end date.
The problem I have is that Access is assuming my query is in American format, mm/dd/yyyy and so displaying the wrong result e.g. I enter my start date as 01/04/2003 (which should be 1st April 2003) and Access thinks I mean 4th January 2003)
I can imagine that this has been raised many times before, is there an easy work around, without forcing the users to use the wrong date format?
A few sites have suggested adding Session.LCID = 2057 to the global.asa file or failing that, the actual web page but this seems to achieve nothing???
I am using ASP to query a Microsoft Access database.
I have created a form, which allows a user to enter a start date and an end date, in the standard European format of dd/mm/yyyy. The ASP then queries my database to pull out any entries that are greater than the start date and less than the end date.
The problem I have is that Access is assuming my query is in American format, mm/dd/yyyy and so displaying the wrong result e.g. I enter my start date as 01/04/2003 (which should be 1st April 2003) and Access thinks I mean 4th January 2003)
I can imagine that this has been raised many times before, is there an easy work around, without forcing the users to use the wrong date format?
A few sites have suggested adding Session.LCID = 2057 to the global.asa file or failing that, the actual web page but this seems to achieve nothing???