Placeholder | Replace With |
date | A date value |
This expression returns the day portion (1 to 31) of a given date.
The following computation is used to determine when a new employee can begin accruing vacation days. If the employee is hired on the first day of the month, he or she immediately begins accruing time off. Otherwise, he or she begins accruing at the beginning of the next month:
if dayOf( HireDate ) = 1
set StartAccruingDate to HireDate
else
set StartAccruingDate to dateOf( 1, monthOf( HireDate + 1 months), yearOf( HireDate + 1 months) )
endIf