API time conversion from Long Int to VBA Date

Discussion created by zglenskij on Apr 15, 2010
Latest reply on Apr 18, 2010 by zglenskij

How do I convert a the time(timedate=1267864200) returned from

Sub GetSnapshot()

Dim pt As Long
Dim rval As Variant
Dim iStat As Long
Dim timedate As Long
Dim wait As Long
Dim RetVal As Long

pt = 59

RetVal = pisn_getsnapshot(pt, rval, iStat, timedate)

End Sub

to a VBA Date, for example 3/2/2010 7:30:00 AM