SAS Timestamp Converter
Convert SAS datetime values to readable dates and encode calendar dates into SAS seconds since 1960-01-01.
Translate SAS datetime and date values
SAS stores datetime values as seconds since 1 January 1960 UTC and date values as whole days from the same epoch. Data exports from SAS, SPSS migrations, and clinical trial datasets often include these numeric fields instead of ISO strings. Decode values to local time or encode a calendar picker selection back into SAS seconds and SAS date days.
For other legacy epochs, try the Mac HFS+ Timestamp Converter or LDAP Timestamp to Date Converter.
Epoch reference
SAS datetime 0 equals 1960-01-01 00:00:00 UTC. SAS date 0 is the same calendar day expressed in days rather than seconds.
Frequently Asked Questions
How are small integers interpreted?
Whole numbers up to 50,000 are treated as SAS date days. Larger values are treated as SAS datetime seconds, which matches common export patterns.
Does SAS use local time zones?
The numeric epoch is UTC-based. Displayed local time follows your browser locale. Confirm timezone handling when joining SAS tables with other systems.
Can I convert fractional datetime seconds?
Yes. SAS datetime fields may include fractional seconds; paste the full decimal value to decode sub-second precision.