3) Your System Date must be dd/mm/yyyy
When i use the cdate function to correct the format it cant do it properly. I think this is because it is checcking the date in the american format. See results of the function below:
230493 - 4/23/1993
230494 - 4/23/1994
310598 - 4/31/1998
310500 - 5/31/2000
310502 - 5/2/1931
310506 - 5/6/1931
250303 - 3/3/2025
190304 - 3/4/2019
Is this happening because it is using the american format? Is there anything i can do to stop it?
PS. DateSerial is changing everthing to year 2009 which is not what i want
How do I format this dates into a proper data format such as dd/mm/yyyy
Examples of the way the dates are stored in an access database are as follows:
020196 - (Stands for 02/01/1996)
160799
140502
231105
260509
No no no! Bad bad worse!I have attached db1 for you to look at. It is very simple to do - I used an update qry.
Look at "DemoWorkingWithDatesA2000.mdb" (attachment, zip).
1) in your Table put a new field NewDate, (DateType = Date/Time, Format = ShortDate). Run Query2Update.
2) If you want in another table. Look at TableNew, (DateType, Format).
Run Query1Append.
3) Your System Date must be dd/mm/yyyy
Use "dd/mmm/yyyy" - I found that "dd/mm/yyyy" still gave me US dates.strAsOf = "#" & Format$(vAsOfDate, "dd/mm/yy") & "#"
If it is showing that date then may be it is returning a -1 (True) - all dates are numbers with 31/12/1899 as 0.When I call this function, it makes "20/04/09" diplayed as "30/12/99".
Can anyone help