ComputeCenturyDateTime

The ComputeCenturyDateTime internal function computes a date and time data item from data items and/or constants containing the century, the year, the month, the day of the month or year and optional data items or constants containing the hour of the day, the minute of the hour, the second of the minute, and the hundredth of the second.

The YYYYMMDDHHMMSShh transform may be applied to the resulting data item.

ComputeCenturyDateTime(Century,Year,Month,Day [,Hour[,Minute [,Second [,Hundredth]]]]
Argument Description
Century A data item or constant containing the century, divided by 100. The value contained in this argument is multiplied by 100 and added to the value contained in the second argument to compute the actual year of the date.
Year A data item or constant containing the year of the century. Note: It is assumed that this value will be in the range of 0 through 99, but it is not enforced.
Month A data item or constant containing the month. Note: If the month argument is a constant zero (0), the Day argument will be treated as the day of the year. Otherwise, the Day argument will be treated as the day of the month.
Day A data item or constant containing the day of the month or year.
Hour An optional data item or constant containing the hour of the day. Default is 00:00:00.00.
Minute An optional data item or constant containing the minute of the hour. Default is Hour:00:00.00.
Second An optional data item of constant containing the second of the minute. Default is Hour:Minute:00.00.
Hundredth An optional data item or constant containing the hundredth of the second. Default is Hour:Minute:Second.00.