I have a table in date format dd/mm/yyyy in access 2007. Even in regional setting it is UK format – dd/mm/yyyy
But when I write a query to filter records for dates from the table.
I have to write like this #07/01/2012#.
select * from table1
where datecolumn between #07/01/2012# and #07/03/2012#
If I write #01/07/2012# it shows no data.
select * from table1
where datecolumn between #01/07/2012# and #03/07/2012#
But from 13/07/2012, if I write using the format #13/07/2012#, it works fine.
select * from table1
where datecolumn between #13/07/2012# and #14/07/2012#
I have an issue till 1st July to 12th July. I’m not sure where is the problem.
Your dates need to be unambiguous, so year, month, day is usually safest.
Once the day goes over 12, the date becomes less ambiguous, or unambiguous, if the year is 4 digit, because there is no month 13.