Export a timestamp with a known offset
Turn 11/4/2026 2:30:15 PM and -05:00 into the text 2026-11-04T14:30:15-05:00.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The real local date and time. | 11/4/2026 2:30:15 PM |
| 2 | "yyyy-mm-dd""T""hh:mm:ss" | The pattern: date, a capital T, then 24-hour time. | "yyyy-mm-ddThh:mm:ss" |
| 3 | TEXT( … ) | Writes the date and time in that pattern as text. | "2026-11-04T14:30:15" |
| 4 | &B8 | Adds the offset exactly as typed. | "…T14:30:15-05:00" |
The doubled quotes keep T as a plain letter. The offset is only added; the time doesn't move.
=TEXT(A8,"yyyy-mm-dd""T""hh:mm:ss")&B8How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own dates and times. Paste real dates and times, and each one's offset like -05:00, into the green columns of the Template tab. The export text fills in by itself.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Check each offset matches its own time and date. The formula adds it as typed; it doesn't convert.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Export milliseconds with an offset
11/4/2026 14:30:15.123, -05:00 → 2026-11-04T14:30:15.123-05:00
Get the template →
Export a time like T14:30:15
2:30:15 PM → T14:30:15
Get the template →
Export UTC timestamps as Unix seconds
November 4, 2026 2:30:15 PM → Unix seconds 1793802615
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →