语法
Date3(year, month, day)
描述
The Date3 function accepts a date expressed as three integers: year, month, and day. It returns a corresponding Date value. If the date is invalid, the Date3 displays an error message.
Warning! Make sure that you pass a four-digit year in the year parameter of this function. Two-digit values will be interpreted literally: 93, for example, represents the year 93 AD.
Parameters
year | An integer for the year in the form YYYY. |
month | An integer from 1 to 12 designating the month. |
day | An integer from 1 to 31 designating the day of the month. |
Returns
Returns a Date value equal to the date specified in the function parameters.
Example
The following PeopleCode Date3 function returns the first day of the year in which the employee was hired:
Date3(HIRE_YEAR, 1, 1);
See Also
Date, DateValue, Day, Days360, Days365.