Read /Date(…)/ values with a time zone

Turn /Date(1793802615000+0100)/ into the UTC time, without adding the +0100.

What you'll make

In Excel: /Date(1793802615000+0100)/ becomes November 4, 2026 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(TEXTAFTER( … ))Takes what is between /Date( and )/. LET calls it s."1793802615000+0100"
2IF(LEFT(s,1)="-", … )Drops a leading minus. LET calls it u."1793802615000+0100"
3TEXTBEFORE(SUBSTITUTE( … ))Keeps the digits before any + or -. LET calls it e."1793802615000"
4DATE(1970,1,1)+ … /86400000Counts milliseconds from January 1, 1970, back for a minus.November 4, 2026 2:30:15 PM
5LET( … )Names each step so the formula reads in order.November 4, 2026 2:30:15 PM

The +0100 on the end is only a note. The number is already UTC, so it isn't added.

=LET(s,TEXTBEFORE(TEXTAFTER(A8,"/Date("),")/"),u,IF(LEFT(s,1)="-",MID(s,2,99),s),e,TEXTBEFORE(SUBSTITUTE(u,"-","+")&"+","+"),DATE(1970,1,1)+IF(LEFT(s,1)="-",-1,1)*VALUE(e)/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 values like /Date(1793802615000+0100)/ 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

The results are UTC. Don't add the time zone on the end again; it's already counted.

Microsoft's help: TEXTAFTER function