Syntax
=DATE(year, month, day)Arguments
| Argument | Required | Description |
|---|---|---|
year | Required | The year (0 to 1899 are added to 1900) |
month | Required | The month, 1 to 12 (others roll over into other years) |
day | Required | The day of the month (others roll over into other months) |
How to use DATE
DATE takes 3 required arguments. Type =DATE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=DATE(2024, 3, 15)Result =DATE(2024, 14, 1)Result =DATE(108, 1, 2)Result Related date and time functions
- DATEDIFCounts the whole days, months or years between two dates.
- DATEVALUEConverts a date written as text into a date serial number.
- DAYReturns the day of the month (1 to 31) of a date.
- DAYSReturns the number of days between two dates.
- DAYS360Returns the days between two dates on a calendar of twelve 30 day months.
- EDATEReturns the date a number of months before or after a date, on the same day of the month where possible.
- EOMONTHReturns the last day of the month a number of months before or after a date.
- HOURReturns the hour (0 to 23) of a time.
- ISOWEEKNUMReturns the ISO week number of the year (weeks start on Monday, week 1 contains the first Thursday).