Category: FUNCTION | Updated: 2026-11-22
How to Use the DATE Function in Google Sheets | Create a Date from Year, Month, and Day Numbers
How to Use the DATE Function in Google Sheets
The DATE function combines separate year, month, and day numbers from different cells into a valid date value that Google Sheets can use in calculations. It is especially helpful for cleaning up CSV exports or constructing dates offset by a specific number of years, months, or days.
Syntax
=DATE(year, month, day)
- year: A 4-digit year number (e.g.,
2026). - month: A number representing the month (
1–12). - day: A number representing the day (
1–31).
Examples
Here is an example of creating dates in Column D from year (A), month (B), and day (C) values.
| Row | A (Year) | B (Month) | C (Day) | D (Formula) | Result | Description |
|---|---|---|---|---|---|---|
| 1 | 2026 | 11 | 22 | =DATE(A1, B1, C1) |
2026/11/22 | Standard date construction |
| 2 | 2026 | 11 | 0 | =DATE(A2, B2, C2) |
2026/10/31 | Day 0 returns the last day of the previous month |
| 3 | 2026 | 12 | 0 | =DATE(A3, B3, C3) |
2026/11/30 | Using day 0 of next month (Dec) gets current month-end |
| 4 | 2026 | 14 | 10 | =DATE(A4, B4, C4) |
2027/02/10 | Months over 12 automatically roll over to the next year |
Common Errors and Tips
- Behavior with 2-digit years
- If you pass a year between
0and1899, Google Sheets automatically adds1900. For example,=DATE(26, 11, 22)becomes 1926/11/22 instead of 2026, so always enter a 4-digit year like2026.
- If you pass a year between
- When a date displays as a 5-digit number like
46348- Internally, Google Sheets stores dates as serial numbers (days elapsed since December 30, 1899). If a number appears, select the cell and click Format > Number > Date.
#NUM!and#VALUE!errors- If the resulting date falls outside Google Sheets’ supported date range (e.g., before January 1, 1900),
#NUM!is returned. Passing non-numeric text as an argument returns#VALUE!.
- If the resulting date falls outside Google Sheets’ supported date range (e.g., before January 1, 1900),
Frequently Asked Questions
Q. What happens if I pass 13 or higher for "month", or 32 or higher for "day" in DATE?
A. Instead of throwing an error, DATE automatically rolls over into the following year or month. You can use this behavior to easily calculate next month's date or the last day of a month.
Q. How is DATE different from joining numbers with "&" like 2026&"/"&11&"/"&22?
A. Joining with "&" produces a plain text string that cannot be used in date math, whereas DATE creates a true date value (serial number) that supports addition and subtraction.