← All comparisons

DATE vs DATEVALUE: build a date or parse one

Both hand you a real date value, but from opposite starting points. DATE builds one from separate year, month, and day NUMBERS. DATEVALUE parses one out of a TEXT string that looks like a date. If your inputs are numbers, use DATE; if they're text, use DATEVALUE.

The differences at a glance

DATEDATEVALUE
InputThree numbers: year, month, dayOne text string, e.g. "2026-07-21"
ReturnsA date serial numberA date serial number
Handles out-of-range partsYes — DATE(2026,13,1) rolls to Jan 2027; day 0 = last of prev monthN/A — it reads what's written
Locale sensitivityNone — parts are explicitYes — "03/04/2026" depends on the machine's date order
Fails whenNever (any integers work)The text isn't a recognizable date -> #VALUE!
CompatibilityUniversalUniversal (both verified by execution)

Which should you use?

Compatibility (from executed tests)

Both execute correctly in every version of all three apps we test (DATE(2026,7,21) and DATEVALUE("2026-07-21") both return the same serial). DATEVALUE parses time-less date strings; its sibling TIMEVALUE parses times, and combining them reconstructs a full timestamp from text. The reverse direction — a real date to formatted text — is TEXT.

Example formulas

Build a date from parts=DATE(2026,7,21)
Parse a text date=DATEVALUE("2026-07-21")
Three columns into one date=DATE(A2,B2,C2)

Full per-version details on each function page: DATE · DATEVALUE.