Read seconds since 1960 as timestamps
Turn a SAS datetime value like 2109421815 into November 4, 2026 2:30:15 PM.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | DATE(1960,1,1) | The day the count starts from. | January 1, 1960 |
| 2 | A8 | The seconds since then. | 2109421815 |
| 3 | /86400 | Turns seconds into days: 86,400 in a day. | November 4, 2026 2:30… |
Read it left to right. Excel adds the days to January 1, 1960, and keeps the time of day.
=DATE(1960,1,1)+A8/86400How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own numbers. Paste seconds like 2109421815 into the green column of the Template tab. The dates and times fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Check the SAS field holds seconds, not days. A day count like 24415 gives a time on January 1, 1960.
Microsoft's help: DATE function
OTHER ROUTES YOU MIGHT LIKE

Read a timestamp with a century prefix
04-NOV-26 02.30.15.123456 PM + 20 → 11/4/2026 14:30:15.123
Get the template →
Keep missing timestamp markers blank
NULL → blank; 2026-11-04T14:30:15 → November 4, 2026 2:30:15 PM
Get the template →
Read a text timestamp as a date and time
2026-11-04T14:30:15 → November 4, 2026 2:30:15 PM
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →