xRPG Core Library Procedures - RNBDATES: getDateDayNum()
Get the numeric day of the week from a date.
Returns the number based on a mathematical algorithm and should work for
any date.
1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thuday
6 = Friday
7 = Saturday
To get the name instead of the number, call the
getDateDayName
procedure instead.
Usage:
getDateDayNum( {dateIn} );
| dateIn |
D |
Const |
Opt |
The date. If not sent then %date() is used. |
| Returns: |
1,0 |
n/a |
n/a |
The number of the week of the day for this date. |