| Function group | Execute on client | Platform(s) |
| Date and time | NO | All |
pday(datepart,date)
Returns the date of the day before the specified date when the datepart constant is set to kDay or kSunday-kSaturday.
However, if one of the day of the week constants is used, this function returns the date of that day of the week preceding the specified date.
The datepart constants that you can use are: kDay, kSunday, kMonday, kTuesday, kWednesday, kThursday, kFriday, kSaturday.
CalculatelDateaspday(,#D)# returns May 7 2003, assume #D is May 8, 2003
CalculatelDateaspday(,#D)# returns May 1 2003, which is the Thursday before #D, assume #D is May 8, 2003