Export UTC timestamps as Unix seconds

Turn November 4, 2026 2:30:15 PM UTC into 1793802615, rounded to the nearest second.

What you'll make

In Excel: November 4, 2026 2:30:15 PM becomes Unix seconds 1793802615.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The UTC date and time.November 4, 2026 2:30…
2-DATE(1970,1,1)Counts the days since January 1, 1970.20761.6043
3*86400Turns days into seconds: 86,400 in a day.1793802615
4ROUND( … ,0)Rounds to the nearest whole second.1793802615

Read it left to right. The time of day becomes part of a day, so it counts too.

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

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 times. Paste real dates with times 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 times that are already in UTC. Excel doesn't change local time to UTC for you.

Microsoft's help: ROUND function