Excel guide · 5 min read
How to convert a date to text in Excel
=TEXT(C2,"yyyy-mm-dd") turns a date into text like 2026-11-03, and =TEXT(D2,"mmm d, yyyy") gives Dec 3, 2026. Use TEXT whenever you join a date to other text, because a date joined with & on its own shows as a serial number such as 46359.Sample data
Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Invoice | Client | Issued | Due | Amount | Logged |
| 2 | INV-2041 | Harbor Dental | Nov 3, 2026 | Dec 3, 2026 | 1850 | Nov 3, 2026 14:35 |
| 3 | INV-2042 | Pine & Co | Nov 5, 2026 | Nov 19, 2026 | 620 | Nov 5, 2026 9:05 |
| 4 | INV-2043 | Lakeside Gym | Nov 9, 2026 | Dec 9, 2026 | 2400 | Nov 9, 2026 16:50 |
| 5 | INV-2044 | Vela Studio | Nov 12, 2026 | Nov 26, 2026 | 375 | Nov 12, 2026 11:20 |
| 6 | INV-2045 | Northgate Ltd | Nov 16, 2026 | Jan 15, 2027 | 5200 | Nov 16, 2026 8:15 |
Download this sheet as an Excel practice file (.xlsx)
TEXT with yyyy-mm-dd
Excel stores every date as a number: the count of days since January 1, 1900. December 3, 2026 is 46359. The date you see is just a format on that number. TEXT applies a format and hands back the result as text, so it can go into a file name, a sentence, an ID or a system that wants a fixed layout.
yyyy-mm-dd (the ISO 8601 layout) is the best choice for anything a computer reads: it is unambiguous in every country, and text in that shape sorts in date order. Use yyyymmdd, which gives 20261203, when you need it with no separators, for example in invoice or batch numbers.
Result: 2026-11-03
2026-11-03, as text. =ISTEXT() on this result returns TRUE.
Other date formats you can use
The format code describes the layout. d is the day, m the month and y the year; repeat the letter to get longer forms. Here is what each gives for the due date in D2:
"mmmm d, yyyy" gives December 3, 2026. "d mmm yyyy" gives 3 Dec 2026. "dd/mm/yyyy" gives 03/12/2026 and "mm/dd/yyyy" gives 12/03/2026. "dddd" gives Thursday, and "ddd, mmm d" gives Thu, Dec 3. Any other characters, such as commas, spaces, hyphens and slashes, appear exactly as typed.
Pick the layout your reader expects, and spell the month out when the text goes to people in other countries. 03/12/2026 is March 12 to an American and 3 December to most of Europe; Dec 3, 2026 cannot be misread.
Result: Dec 3, 2026
Dec 3, 2026.
Why joining a date shows 46359
You build a reminder line with & and the date turns into a five-digit number. The & operator joins values as text, and it uses the underlying value of the date, not the format you see in the cell. So the 46359 behind December 3, 2026 is what lands in the sentence.
CONCAT and CONCATENATE do the same thing, and so does TEXTJOIN. Changing the cell format of D2 does not help, because the join never looks at the format.
Result: Invoice INV-2041 is due 46359
Invoice INV-2041 is due 46359. The date has turned into its serial number.
Fix: wrap the date in TEXT inside the join
Put TEXT around the date reference and choose the format you want in the sentence. The rest of the formula is unchanged. This also works for amounts: TEXT(E2,"$#,##0") keeps the thousands separator that & would otherwise drop.
To list several dates in one cell, combine TEXT with TEXTJOIN. In Excel 365 and Excel 2021, =TEXTJOIN(", ",TRUE,TEXT(D2:D4,"mmm d")) gives Dec 3, Nov 19, Dec 9. For today's date in a line, use TEXT(TODAY(),"mmm d").
Result: Invoice INV-2041 is due December 3, 2026
Invoice INV-2041 is due December 3, 2026.
Dates with times: m means minutes after h
Column F holds a date and a time. Add the time codes after the date codes: h or hh for hours, mm for minutes, ss for seconds, and AM/PM for a 12-hour clock. TEXT(F2,"h:mm AM/PM") gives 2:35 PM.
The letter m does double duty. Excel reads it as minutes only when it comes right after h or hh, or right before ss; anywhere else it means the month. TEXT(F2,"mm") on its own gives 11, the month, not 35. If you only want the date, leave the time codes out and the time part is simply dropped from the text.
Result: 2026-11-03 14:35
2026-11-03 14:35. The mm after hh is read as minutes.
Text dates sort alphabetically, and other side effects
The result of TEXT is text, not a date. You cannot add days to it, it will not group by month in a PivotTable, and it sorts letter by letter. Formatted as "mmm d, yyyy", the due dates sort with December before January and November last, because D comes before J and N.
So keep the real date column for sorting and calculating, and use TEXT only in the column or cell you display or export. If you do need text that sorts correctly, use yyyy-mm-dd: =SORT(TEXT(D2:D6,"yyyy-mm-dd")) sorts in true date order. To turn the text back into a date later, see the guide on converting text to dates.
Result: spills 5 rows × 1 column
| Dec 3, 2026 |
| Dec 9, 2026 |
| Jan 15, 2027 |
| Nov 19, 2026 |
| Nov 26, 2026 |
Dec 3, 2026, Dec 9, 2026, Jan 15, 2027, Nov 19, 2026, Nov 26, 2026: alphabetical, not chronological.
Locale traps, and converting a whole column without formulas
Format codes are language-specific. A German copy of Excel expects JJJJ for the year and TT for the day, a French one aaaa and jj. A TEXT formula written with English codes can give wrong results when someone opens the file with Excel set to another language. To force English month and day names, add a locale tag in front of the code, such as "[$-409]mmmm d, yyyy". For an ISO date that ignores language completely, build it from numbers: =YEAR(D2)&"-"&RIGHT("0"&MONTH(D2),2)&"-"&RIGHT("0"&DAY(D2),2) gives 2026-12-03 on any system.
Changing the cell format to Text (Ctrl+1) does not convert the date. The value is still a number, so the cell shows its serial number instead. To replace a column of dates with text permanently, convert with TEXT in a helper column, then paste the results over the originals as values.
- In an empty column, enter
=TEXT(D2,"yyyy-mm-dd")and fill it down. - Copy the new column.
- Right-click the first original date cell and choose Paste Special > Values.
- Delete the helper column. The cells now hold text, aligned to the left.
Common mistakes
Joining a date with & and getting 46359
The join uses the stored number. Wrap the date in TEXT inside the join: "Due "&TEXT(D2,"mmm d, yyyy").
Using mm for minutes on its own
mm means month unless it follows h or comes before ss. Write "hh:mm" or "h:mm AM/PM", never "mm" alone, for minutes.
Sorting or calculating with the TEXT column
TEXT returns text, which sorts alphabetically and cannot be added to. Keep the real date for sorting and math, or use yyyy-mm-dd if text must sort.
Formatting the cell as Text to convert it
The value stays a number and shows as a serial number. Use TEXT in a helper column, then Paste Special > Values.
FAQ
How do I convert a date to text in Excel without a formula?
There is no single ribbon command for it. The reliable route is a TEXT formula in a helper column, then copy it and use Paste Special > Values over the original dates.
Why does my date turn into a number when I concatenate it?
Dates are stored as day counts, and & or CONCAT joins that stored number, not the displayed format. Use TEXT(date,"mmm d, yyyy") inside the join to keep it readable.
How do I convert a date to text in yyyymmdd format?
Use =TEXT(A2,"yyyymmdd"). For December 3, 2026 it returns 20261203 as text. Add hyphens with "yyyy-mm-dd".
How do I convert a date to the month name or weekday as text?
Use TEXT with month or day codes: =TEXT(A2,"mmmm") gives the full month name and =TEXT(A2,"dddd") gives the weekday, such as Thursday.
Is the result of TEXT still a date?
No, it is text. It will not work in date math or date filters. If you need a date again, convert it back with DATEVALUE or a double minus (--).
Functions used
TEXTNumber to formatted textISTEXTIs it text?TEXTJOINJoins with a separatorTODAYToday’s dateSORTSorts a range, spillsYEARYear of a dateMONTHMonth numberDAYDay of the monthRIGHTCharacters from the endDATEVALUEText date to a real date
Related guides
- How to combine text with numbers and dates in Excel
- How to convert text to a date in Excel
- How to get the month name from a date in Excel
- How to get the day of the week from a date in Excel
- How to sum by month in Excel
- CONCAT vs TEXTJOIN vs &: which should you use?
- How to add leading zeros in Excel
Updated