Create a six-digit yymmdd date field

Turn November 4, 2026 into the text 261104: a two-digit year, then month and day.

What you'll make

In Excel: November 4, 2026 becomes 261104.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The real date.November 4, 2026
2"yymmdd"The pattern: two digits each for year, month, day."yymmdd"
3TEXT( … )Writes the date in that pattern as text."261104"

Every part gets two digits, so 4 becomes 04 and every code has six digits.

=TEXT(A8,"yymmdd")

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 real dates with no time into the green column of the Template tab. The codes fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Only use this where the system you send to asks for yymmdd. The year loses its century, so keep your full dates too.

Microsoft's help: TEXT function