What is the syntax to return the weekday from date?

WeekDay(date, firstdayofweek)
‘firstdayofweek can be values 1-7 for Sunday to Saturday; optional parameter
‘examples
MsgBox (Weekday("2043-01-24")) 'returns 6
MsgBox (Weekday("2043-01-24", 2)) 'returns 7

 

Advertisements