Read timestamps wrapped in {ts}

Turn {ts '2026-11-04 14:30:15'} into a real date and time.

What you'll make

In Excel: {ts '2026-11-04 14: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
1AND( … )Checks the {ts ' start, the '} end and 26 characters.TRUE
2DATEVALUE(MID( … ))Reads 10 characters from the 6th as a date.November 4, 2026
3TIMEVALUE(MID( … ))Adds the clock time from the 17th character.November 4, 2026 2:30:15 PM
4"Review timestamp"The message when the wrapper or length is wrong.Not used for row 8
5IF( … )Shows the date and time, or else the message.November 4, 2026 2:30:15 PM

It only unwraps the text. It doesn't run anything, and the time has no time zone.

=IF(AND(LEFT(A8,5)="{ts '",RIGHT(A8,2)="'}",LEN(A8)=26),DATEVALUE(MID(A8,6,10))+TIMEVALUE(MID(A8,17,8)),"Review timestamp")

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 {ts '2026-11-04 14: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

Check every Review row by hand. Times with fractions of a second are flagged, not rounded.

Microsoft's help: DATEVALUE function