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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Long to Date

Status
Not open for further replies.

ljpitre

Programmer
Sep 14, 2007
5
US
I'm looking at someone elses code that generates keys using dates.

part of his code converts a date type to a long

Clng(Date)

Is there a way to reverse this? that is convert the long back to a date?
 
Use CDate()

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top