Convert date to number

JAD001

New member
Local time
Today, 04:17
Joined
Jun 18, 2015
Messages
2
Trying to convert a date in my query to a number. What function will convert 6/17/2015 to 42172? Tried datevalue dateserial
 
CDbl is the function.
Code:
? CDbl(Date())
 42173 
? CDbl(Now())
 42173.6818402778
 
try clng

clng(date())
 
Thanks CDbl and clng both worked. Have to read up on them and why I could not find them.
Thanks again!
 

Users who are viewing this thread

Back
Top Bottom