1. Home
  2. Functions
  3. Date and time
  4. DATEVALUE

DATEVALUE function

Converts a date written as text into a date serial number.

Syntax

=DATEVALUE(date_text)

Arguments

ArgumentRequiredDescription
date_textRequiredText with a date, like "8/22/2011" or "22-May-2011"

How to use DATEVALUE

DATEVALUE takes 1 required argument. Type =DATEVALUE( 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.

=DATEVALUE("8/22/2011")Result 40777, shown as 8/22/2011 with a date format
=DATEVALUE("22-MAY-2011")Result 40685, shown as 5/22/2011 with a date format
=DATEVALUE("2011/02/23")Result 40597, shown as 2/23/2011 with a date format

Every formula, right in your browser

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