Returns the date, given the year, month, and day of the month.
Syntax
year: The year to display in the result. Must be an integer between 1583 and 9956, or between 0 and 99. E.g. 2020
month: The month to display in the result. Must be an integer. If month value is:
0 - It subtracts the first month from the year. E.g. DATE(2017,0,2) gives December 2, 2016
Greater than 12 - It adds number of extra months to the given year. E.g. DATE(2016,13,2) gives January 2, 2017
Less than 0 - It subtracts number of months from the given year. E.g. DATE(2017,-2,1) gives October 1, 2016
day: The day to display in the result. Must be an integer. When day is:
Greater than days in the specified month, it adds number of extra days to the next month. E.g. DATE(2017,1,32) gives February 1, 2017.
0 - Subtracts the current day in the given month and year. E.g. DATE(2017,1,0) gives December 31, 2016
Examples
Formula |
Result |
=DATE(2020;1;1) |
1/1/20 |
=DATE(2020;1;0) |
12/31/19 |
=DATE(2020;15;1) |
3/1/21 |
Possible Errors
Errors |
Meaning |
#N/A! |
|
#NAME! |
|
#VALUE! |
|
#REF! |
|
#NUM! |
|
Similar Functions
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.