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.
  2. 2In a result cell, enter =TEXT(A2,"YYYY-MM-DD") for ISO format.
  3. 3Change the format code to match your needs: "MM/DD/YYYY" for US format, "DD/MM/YYYY" for UK format, "MMMM D, YYYY" for long form.
  4. 4The result is a text string that can be concatenated: ="Report date: "&TEXT(A2,"MMMM D, YYYY").
  5. 5Press Enter. Note the result aligns left, confirming it is text, not a date.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

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

That number is the date serial number. It means the cell is not formatted as a date. Use TEXT(A2,"YYYY-MM-DD") to convert it to a readable string, or format the source cell as a Date.

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

In Google Sheets, use TEXT with a locale parameter in newer versions, or rely on LOWER/UPPER for case adjustments. In Excel, TEXT follows the Windows locale setting.

Formulas used

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

Last reviewed: