Syntax
| Parameter | Description |
|---|---|
| year | Parameter of the DATE function. |
| month | Parameter of the DATE function. |
| day | Parameter of the DATE function. |
Examples
Build a date from components
=DATE(A2, B2, C2)
First day of current month
=DATE(YEAR(TODAY()), MONTH(TODAY()), 1)
Add months to a date
=DATE(YEAR(A2), MONTH(A2)+3, DAY(A2))
Common Errors
One of the arguments is text instead of a number. Ensure year, month, and day are all numeric.
The resulting date is outside the valid range. Year must be between 1900-9999 in most spreadsheets.
Tips
DATE(2024, 13, 1) returns Jan 1, 2025. DATE(2024, 0, 1) returns Dec 1, 2023. This is useful for date arithmetic.
=DATE(YEAR(A1), MONTH(A1)+1, 0) gives the last day of the month in A1. Day 0 rolls back to the previous month's last day.
DATE(24, 1, 1) is interpreted as year 1924, not 2024. Always use 4-digit years to avoid ambiguity.
Try DATE in Viztab
Import your data and use DATE with 370+ other formulas. No signup required.
Open Viztab