Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smalldatetime in Access

Status
Not open for further replies.

mrmc74

Technical User
Mar 2, 2004
9
NL

Hi,

How do you format your date/time data to number of days from January 1, 1900?

Thanks.
 
mrmc74,

Take one of your dates from your table and CONVERT it as such -- I suggest CDbl since you are ALSO using TIME
Code:
MsgBox CDbl([MyDate])
You'll see that you DATE is just a NUMBER -- actually, the NUMBER of days since 1/1/1900.

The "fractional" part is TIME in days.

:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top