Category: FUNCTION | Updated: 2026-11-22

TO_DATE Function

TO_DATE Function

The TO_DATE function in Google Sheets is a Google Sheets-exclusive function that converts a specified number (serial value) into a “Date” display format. It is handy when a formula result displays as a serial number like 46350 and you want to format it as a date directly within the formula.

Syntax

=TO_DATE(value)
  • value: A number (serial value) or a cell containing a number to convert into a date.

Practical Examples with a Table

This example converts cells containing serial values (numbers) into date format using the TO_DATE function.

A (Number / Serial Value) B (TO_DATE Result) Notes
1 Number Converted Result Notes
2 46350 =TO_DATE(A2) Converts to 2026/11/24
3 1 =TO_DATE(A3) Converts to 1899/12/31
4 0 =TO_DATE(A4) Converts to 1899/12/30 (base date)
  • Result in B2: 2026/11/24 (The display format automatically becomes a date)
  • Result in B4: 1899/12/30 (The starting point for serial values in Google Sheets is December 30, 1899)

Common Errors and Precautions

  • Passing a text string does not convert it to a date:
    • If you pass a text string like =TO_DATE("2026/11/24"), it will not produce an error, but it will not be converted into date data either—it outputs the original text as-is. Use DATEVALUE when converting text to a date.
  • The underlying data remains a number (serial value):
    • Because TO_DATE simply applies a date display format, you can still perform operations like +7 or apply the YEAR function directly to the converted cell.
  • Compatibility with Excel:
    • Because TO_DATE is unique to Google Sheets, it may not work properly when exported to Excel (.xlsx) format. If compatibility is important, it is recommended to set the date format using the cell’s “Format” menu instead.

Frequently Asked Questions

Q. What is the difference between TO_DATE and DATEVALUE?

A. DATEVALUE converts a 'date stored as text' into a 'serial value (number)', whereas TO_DATE applies a 'date display format' to an existing 'number (serial value)'.

Q. What happens if I pass a text string like '2026/11/24' to TO_DATE?

A. Because TO_DATE operates on numbers, passing a text string will not convert it and will return the string as-is. Use DATEVALUE if you want to convert text into a date.