MergeDate¶
Combines several integer or date components into a single date.
Combines integers and dates labelled with their role into a single output date. Each parameter is a two-entry array: the first entry is the field reference, the second is the role.
The supported roles are:
date(input typeDATE)time(input typeDATE)year(input typeINT)month(input typeINT)day(input typeINT)hour(input typeINT)minute(input typeINT)second(input typeINT)
Parameters¶
- 1 —
component1Mandatory — accepts: array -
Two-entry array
[:field, "role"]— the field to use and its role in the merged date. - 2 —
component2Mandatory — accepts: array -
Two-entry array
[:field, "role"]— the field to use and its role in the merged date. - N —
extrasOptional — accepts: array -
Additional
[:field, "role"]components, up to a total of six arrays.
Input type¶
DATEINT
Output type¶
DATE
Requires¶
- Roles must be one of
date,time,year,month,day,hour,minute, orsecond.
Examples¶
Combine a date with a separate time-of-day
Combine year/month/day/hour/minute/second
MergeDate([:year, "year"], [:month, "month"], [:day, "day"], [:hour, "hour"], [:minute, "minute"], [:second, "second"])
See also¶
DayFromDate, MonthFromDate, YearFromDate, HourFromDate, MinuteFromDate, SecondFromDate