From Xojo Documentation
The number of seconds since the first 1 January 1970, 00:00 GMT.
This value is also referred to as the Unix epoch, Unix time or Unix timestamp.
You can save this value (in a file or database, for example) and use a Constructor to create a new Date instance for it. Negative values indicate seconds before 1 January 1970, 00:00 GMT.
Get the seconds since 1970 and use it to create a new date:
Var seconds As Double = d1.SecondsFrom1970
Var d2 As New DateTime(seconds, TimeZone.Current)
// Both d1 and d2 have the same date value
Calculate the number of days between two dates: