Export a UTC date as Unix seconds

Turn November 4, 2026 into 1793750400, the Unix seconds at midnight UTC that day.

What you'll make

In Excel: November 4, 2026 becomes Unix seconds 1793750400.

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*86400Turns days into seconds: 86,400 in a day.1793750400

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

=(A8-DATE(1970,1,1))*86400

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 seconds 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