DateFromComponents function
DateFromComponents function
Returns a date from the given years, months, and day of month that is given as three separate values.
Namespace
datetime
Input
years (int
), month(int
), day of month(int
)
Output
date (date
)
Example
If year
contains the value 2010
, month
contains the value 12
, and dayofmonth
contains the value 2
, then the two following functions are equivalent, and return the date 2010–12–02
set-column result datetime:DateFromComponents(2010, 12, 2)
set-column result datetime:DateFromDaysSince(year, month, dayofmonth)
Related content
DateOffsetByComponents function
DateOffsetByComponents function
More like this
TimeFromComponents function
TimeFromComponents function
Read with this
DateFromJulianDay function
DateFromJulianDay function
More like this
MonthFromDate function
MonthFromDate function
More like this
YearFromDate function
YearFromDate function
More like this
YeardayFromDate function
YeardayFromDate function
More like this
Created in 2020 by Google Inc.