Hi:
I have to convert a data (not the current date) to GMT and represent it as a Unix Epoch.
This is what I'm trying - it returns something that looks correct - but I'd like to know if anyone with more experience knows if I am doing this correctly.
I have to convert a data (not the current date) to GMT and represent it as a Unix Epoch.
This is what I'm trying - it returns something that looks correct - but I'd like to know if anyone with more experience knows if I am doing this correctly.
Code:
Friend Function GetEpoch(ByVal dDate as Date) as Integer Return (dDate.ToFileTimeUtc - New DateTime(1970, 1, 1, 0, 0, 0, 0).ToFileTimeUtc) / 10000000 End Function
Comment