WEEKDAY_NR
            Script Functions: Returns the day of a week of a given date as a number
Syntax
WEEKDAY_NR ([Date Format:]Date)
| 
                         Syntax  | 
                    
                         Description/Format  | 
                
|---|---|
| 
                         Date  | 
                    
| 
                         Return codes  | 
                
|---|
| 
                         "1" - 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 "5" and "6" for the specified date.
:SET &SILVESTER_2000# = WEEKDAY_NR('DD.MM.YY:31.12.99')
:SET &NEWYEAR_2000# = WEEKDAY_NR("DD.MM.YYYY:01.01.2000")
            
See also: