Weekday function
Syntax
Weekday(dt)
Description
Use the Weekday function to calculate the day of the week based on a date value.
Parameters
| Parameter | Description |
|---|---|
|
dt |
A Date value. Weekday determines the day of the week that dt falls on. |
Returns
Returns a Number value representing the day of the week. 1 is Sunday, 7 is Saturday.
Example
If &Date_HIRED equals October 30, 1996, a Monday, then the following statement sets &DAY_HIRED to 2:
&DAY_HIRED = Weekday(&Date_HIRED);