FormulaCraft

How to convert a date to text in Excel and Google Sheets

Excel & Google Sheets
=TEXT(A2,"YYYY-MM-DD")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your date value in A2 (must be a real date — left-aligned if so).
  2. 2In a result cell, enter =TEXT(A2,"YYYY-MM-DD") for ISO format.
  3. 3Swap the format code for your target shape: "MM/DD/YYYY" US, "DD/MM/YYYY" UK, "D MMM YYYY" → "7 Mar 2026", "MMMM D, YYYY" → "March 7, 2026", "dddd" → "Saturday".
  4. 4Concatenate with other strings: ="Report date: "&TEXT(A2,"MMMM D, YYYY") returns "Report date: March 7, 2026".
  5. 5Press Enter. The result aligns left in the cell, confirming it's now text — not a date you can do math on.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why does my date appear as a number like 45292 instead of a formatted date?

That's the date serial number — the internal storage format. Either format the source cell as a Date (Ctrl+1 → Date) or wrap in TEXT(A2, "YYYY-MM-DD") to convert it to a readable string. The serial number itself is correct; only the display needs the format applied.

How do I convert a date to text in a specific language?

TEXT uses your spreadsheet locale by default. In Excel, locale follows Windows system settings. In Google Sheets, File → Settings → Locale controls it. To force a specific language regardless of locale, build the string manually with CHOOSE or by joining MONTH/DAY/YEAR with hardcoded labels.

How do I get the date in ISO 8601 (YYYY-MM-DD) format?

=TEXT(A2, "YYYY-MM-DD"). This is the international standard, sorts correctly as text, and is the safest format for data exchange between systems.

How do I include the day of the week (e.g. "Saturday, March 7, 2026")?

=TEXT(A2, "dddd, MMMM D, YYYY"). "dddd" returns the full weekday name; "ddd" returns the 3-letter abbreviation. Locale-sensitive.

How do I convert TEXT date back to a real date?

Use DATEVALUE: =DATEVALUE(B2) where B2 is the text. DATEVALUE parses common date formats and returns a date serial number. Format the result cell as Date to display it normally.

Why doesn't TEXT change the original cell — only shows the result in a new cell?

TEXT is a formula that returns a new value into another cell. To replace the original, copy the TEXT result column, paste it as values (Paste Special → Values) over the original column. Now the original holds text, not dates.

How do I include time only (no date)?

=TEXT(A2, "HH:MM") for 24-hour, =TEXT(A2, "hh:mm AM/PM") for 12-hour. "HH:MM:SS" adds seconds.

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: