ComputeCenturyDate

The ComputeCenturyDate internal function computes a date from data items and/or constants containing the century, the year of the century, the month, and the day of the month or year. When a constant zero is supplied for the month, ComputeCenturyDate computes a date from data items and/or constants containing the year and the days of the year.

The YYYYMMDD transform may be applied to resulting data item.

 ComputeCenturyDate(Century,Year,Month,Day)
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 Year 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.