DATEVALUE Function
Convert a date in text form into a date serial number. date_text is a date as text, such as "2026-10-09"; a time in the text is ignored. Text that is not a date returns #VALUE!. Format the cell as a date to show the result as a date.
Syntax
DATEVALUE(date_text)
Category: Date & Time. Minimum arguments: 1. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=DATEVALUE("2026-10-09")
The formula returns 46304, the serial number of October 9, 2026.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.