TX Sheet Control

DATE Function

Function

Return the date serial number of a year, month and day. year is the year: 0 to 1899 is added to 1900, so 26 is 1926, and 1900 to 9999 is used as it is. month and day can be outside their usual range and carry over: month 14 is February of the next year, and day 0 is the last day of the previous month. A year less than 0 or greater than 9999 returns #NUM!. Format the cell as a date to show the result as a date.

Syntax

DATE(year, month, day)

Category: Date & Time. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

Examples

=DATE(2026,10,9)

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.

See Also