1. Home
  2. Functions
  3. Text
  4. TO_DATE

TO_DATE function

Returns a number as a date value (the number itself; text and other values are returned unchanged).

Syntax

=TO_DATE(value)

Arguments

ArgumentRequiredDescription
valueRequiredThe number to treat as a date

How to use TO_DATE

TO_DATE takes 1 required argument. Type =TO_DATE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=TO_DATE(45292)Result 45292
=TO_DATE("abc")Result "abc"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.