Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hello All ,

I have one issue regarding the MS access query.

I am using MS Access 2007 and Created the DB and tables.
The tables having the date column. Better say below is the table definition and data.
Id , Member , CollectionDate
1    ABC      12/01/2010
2    DEF      5/1/2010

The first date is 12 Jan 2010 and second is 5 Jan 2010.

But whenever I clicked on datetime picker which pop up when after clicking on date column fields in MS access environment. It Shows 01 Dec 2010 and for second date it shows 1 May 2010.

Also Whenever I used to find the data. I have to query in this way
SQL
SELECT * FROM table1 WHERE CollectionDate = #1/12/2010# 

to get the first row and
SQL
SELECT * FROM table1 WHERE CollectionDate = #1/5/2010#

to get the second row.


For your information. My system date format is dd/MM/yyyy
But when I installed the MS in my system. That time the date format was MM/dd/yyyy.

Now my question is how can I change the date format of MS access query to make it sync with system date format.
Posted
Updated 19-Apr-11 20:22pm
v3
Comments
RDBurmon 19-Feb-11 10:51am    
Thanks Henry
Albin Abel 19-Feb-11 11:07am    
The date format reflects from the system regional settings, which can be changed using the control panel interface.
RDBurmon 18-Apr-11 4:57am    
Thanks Albin

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900