Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=TEXT(A2,"YYYY-MM-DD")Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
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.
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.
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.
=TEXT(A2, "YYYY-MM-DD"). This is the international standard, sorts correctly as text, and is the safest format for data exchange between systems.
=TEXT(A2, "dddd, MMMM D, YYYY"). "dddd" returns the full weekday name; "ddd" returns the 3-letter abbreviation. Locale-sensitive.
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.
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.
=TEXT(A2, "HH:MM") for 24-hour, =TEXT(A2, "hh:mm AM/PM") for 12-hour. "HH:MM:SS" adds seconds.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: