Read a text timestamp as a date and time

Turn the text 2026-11-04T14:30:15 into a real date and time: November 4, 2026 2:30:15 PM.

What you'll make

In Excel: 2026-11-04T14:30:15 becomes November 4, 2026 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1DATE( … )Reads the year, month and day as a real date.November 4, 2026
2TIME( … )Adds the hour, minutes and seconds.November 4, 2026 2:30:15 PM

LEFT and MID take characters by position: the year starts at 1, the hour at 12, the seconds at 18.

=DATE(LEFT(A8,4),MID(A8,6,2),MID(A8,9,2))+TIME(MID(A8,12,2),MID(A8,15,2),MID(A8,18,2))

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 timestamps. Paste timestamps like 2026-11-04T14:30:15 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

A time ending in Z is UTC. This keeps it as written, so it isn't moved to your time zone.

Microsoft's help: DATE function