xRPG Core Library Procedures - RNBDATES: getTSDayNum()
Get the numeric day of the week from a timestamp.
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
getTSDayName
procedure instead.
Usage:
getTSDayNum( {TSin} );
| TSIn |
Z |
Const |
Opt |
The timestamp. If not sent then %timestamp() is used. |
| Returns: |
1,0 |
n/a |
n/a |
The number of the week of the day for this timestamp. |