Export a UTC date as Unix milliseconds

Turn November 4, 2026 into 1793750400000, the Unix milliseconds at midnight UTC.

What you'll make

In Excel: November 4, 2026 becomes Unix milliseconds 1793750400000.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The UTC date.November 4, 2026
2-DATE(1970,1,1)Counts the days since January 1, 1970.20761
3*86400000Turns days into milliseconds: 86,400,000 in a day.1793750400000

Read it left to right. Dates before 1970 give a minus number.

=(A8-DATE(1970,1,1))*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 dates. Paste real dates with no time into the green column of the Template tab. The Unix milliseconds fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Use dates that are already in UTC. Excel doesn't change a local date to UTC for you.

Microsoft's help: DATE function