Dates and times

Formats

There are three common formats across SAS, SPSS and Stata.

Date (number of days)

Time (number of seconds):

DateTime (number of seconds):

Offsets

Dates and date times use a difference offset to R:

References