Read milliseconds since 1960

Turn a Stata datetime value like 2109421815000 into November 4, 2026 2:30:15 PM.

What you'll make

In Excel: Milliseconds since 1960 2109421815000 becomes November 4, 2026 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1DATE(1960,1,1)The day the count starts from.January 1, 1960
2A8The milliseconds since then.2109421815000
3/86400000Turns milliseconds into days: 86,400,000 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/86400000

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own numbers. Paste milliseconds like 2109421815000 into the green column of the Template tab. The dates and times fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Check your numbers are Stata %tc values counted from 1960. Unix milliseconds count from 1970 and come out 10 years early.

Microsoft's help: DATE function