G
Guest
How does Access store a date? Ex. 1 June 2004
To quote the legendary MVP John Vinson:
I forget the exact format but as I recall it is stored as the year
followed by the day of the year decimal point followed by the time in
seconds. So your example would be something like 2004153.123 for 2minutes
3 seconds after midnight.
John said:ummm... not actually. It's a running count of days since midnight,
December 30, 1899 in days and fractional days. #06/01/2004 00:02:03#
is, for example:
?cdbl(#06/01/2004 00:02:03#)
38139.0014236111
Or going the other way,
?cdate(38250.6666666666)
9/20/2004 4:00:00 PM
John W. Vinson[MVP]