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)
Created in 2020 by Google Inc.