DATEVALUE function in Google Sheets
Converts a provided date string in a known format to a date value.
=DATEVALUE(date_string)DATEVALUE syntax and parameters
One argument, one required.
- date_stringstringRequired
The string representing the date. Understood formats include any date format which is normally autoconverted when entered, without quotation marks, directly into a cell. Understood formats may depend on region and language settings.
DATEVALUE examples
Formulas you'll actually reuse.
A text date turned into a date serial — days since 30 Dec 1899, which is why subtracting dates gives days:
=DATEVALUE("2026-08-14")Result
46248Due date from an invoice date that arrived as text (format the cell as a date):
=DATEVALUE(A2) + 30Result
2026-09-13
DATEVALUE in Excel
Same name — your formula ports as-is.
Try DATEVALUE in the playground
Edit the example — nothing to install.
Preloaded with the DATEVALUE formula from Example 1 — change anything and watch it respond.
DATEVALUE errors
What they mean — and the fixes.
#VALUE!The text isn't a date the locale recognises — 14/08/2026 fails in a US-locale file; use ISO yyyy-mm-dd text or DATE().
Related functions
More ways Google Sheets gets this done.
- DATEConverts a provided year, month, and day into a date.DateExcel
- DATEDIFCalculates the number of days, months, or years between two dates.DateExcel
- DAYReturns the day of the month that a specific date falls on, in numeric format.DateExcel
- DAYSReturns the number of days between two dates.DateExcel
- DAYS360Returns the difference between two days based on the 360 day year used in some financial interest calculations.DateExcel
- EDATEReturns a date a specified number of months before or after another date.DateExcel