ComputeDate

The ComputeDate internal function computes a date from data items and/or constants containing the year, the month, and the day of the month. When a constant zero is supplied for the month, ComputeDate 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.

 ComputeDate(Year,Month,Day)
Argument Description
Year A data item or constant containing the year. The precision of the data item (rather than its value) will be used to determine whether the year contains two or more than two digits. This in turn will determine whether to use the YY or YYYY date constants when evaluating the value of the data item. See the Date Constants dialog box and Defining Date Constants topics.
Month A data item or constant containing the month. Note: If this argument is a constant zero (0), then 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. (See the previous argument).