WEEKDAY_XX
Script Function: Returns the day of the week of a given date as an abbreviation
Syntax
WEEKDAY_XX ([Date Format:]Date)
Syntax |
Description/Format |
---|---|
Date |
Date in YYMMDD or YYYYMMDD format Format: script literal or script variable (Optional) You can specify a different date format: enter the desired date format, a separator (: or ;) and the date. |
Return codes |
---|
"MO" - Monday |
Optionally, you may specify a particular Date Format. The default Date Formats to be used are "YYMMDD" or "YYYYMMDD". A colon or semicolon may be used as a separator between Date Format and Date.
Examples
In these examples, the functions return the values "FR" and "SA" for the specified date.
:SET &SILVESTER_2000# = WEEKDAY_XX("991231")
:SET &NEWYEAR_2000# = WEEKDAY_XX("DD-MM-YYYY:01-01-2000")
See also: