DATE(year, month, day)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
year:
The year component of the date you want to create, represented as a four-digit number.
month:
The month component of the date you want to create, represented as a number from 1 (January) to 12 (December).
day:
The day component of the date you want to create, represented as a number from 1 to 31, depending on the month.
The DATE function in Google Sheets is a useful tool that allows users to create a date value from individual year, month, and day components. This function is particularly helpful when you need to construct a date dynamically from separate values or when you want to ensure that your date format is consistent and recognized by Google Sheets.
In simpler terms, the DATE function helps you combine year, month, and day into a single date value that can be used in calculations, comparisons, and formatting.
Imagine you are managing a project timeline and you have separate columns for the year, month, and day of each task's due date:
| Year | Month | Day | Task |
|---|---|---|---|
| 2023 | 10 | 15 | Task A |
| 2023 | 10 | 20 | Task B |
| 2023 | 11 | 05 | Task C |
You want to create a new column that combines these separate values into a single date for each task.
To achieve this, you would use the DATE function as follows:
=DATE(A2, B2, C2)In this formula:
A2 is the cell containing the Year.B2 is the cell containing the Month.C2 is the cell containing the Day.When you apply the DATE formula to the Project Timeline Table, the output would look like this:
| Year | Month | Day | Task | Due Date |
|---|---|---|---|---|
| 2023 | 10 | 15 | Task A | 2023-10-15 |
| 2023 | 10 | 20 | Task B | 2023-10-20 |
| 2023 | 11 | 05 | Task C | 2023-11-05 |
The new "Due Date" column now shows the combined date values in a standard date format.
The DATE function is beneficial because it allows for the creation of valid date values from separate components, ensuring that calculations involving dates (like finding the difference between two dates) work correctly. It also helps avoid errors that can arise from improperly formatted dates.
The DATE function is an essential tool for anyone working with dates in Google Sheets, providing a straightforward way to manage and manipulate date values effectively.
Happy spreadsheeting!
You have a table with project deadlines in Column A and their corresponding tasks in Column B. You can use the DATE formula to create a new column that calculates the due date for each task based on the start date and duration, ensuring timely project management.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.