Returns the current day of the week (Monday, Tuesday, Wednesday, etc.).
Arguments
Argument |
Description |
Default |
[format] |
The format to use for the day. One of the following: |
L |
|
L |
Long format. For example, Monday. |
|
|
S |
Short format. For example, Mon. |
|
|
N |
Numeric format. For example, 1. |
|
Results
Result |
Description |
Return |
The current day of the week. |
%%RC |
0 if the function was successful. |
%%RM |
A null string (''). |
%%RV |
Always set to 0. |
Examples
Function Call |
Return |
%%RC |
day() |
Monday |
0 |
day(‘L’) |
Monday |
0 |
day(‘s’) |
Mon |
0 |