Export a timestamp as Unix milliseconds

Turn November 4, 2026 2:30:15 PM UTC into 1793802615000, to the nearest millisecond.

What you'll make

In Excel: November 4, 2026 2:30:15 PM becomes Unix milliseconds 1793802615000.

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*86400000Turns days into milliseconds: 86,400,000 in a day.1793802615000
4ROUND( … ,0)Rounds to the nearest whole millisecond.1793802615000

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

=ROUND((A8-DATE(1970,1,1))*86400000,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 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 times that are already in UTC, and check the system wants milliseconds, not seconds.

Microsoft's help: ROUND function