The ComputeDateTime internal function computes a date and time data item from data items and/or constants containing the year, the month, the day of the month or year and optional data items or constants containing the hour or 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.
ComputeDateTime(Year,Month,Day[,Hour[,Minute[,Second[,Hundredths]]]])
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). |
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 or 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. |