You are here

WEEKDAY

SmallBASIC syntax groups: 


Date function WEEKDAY


10
20  WEEKDAY (dmy| (d,m,y)| julian_date)
30
Returns the day of the week (0 = Sunday).


See examples


If there is insufficient information on this page and you wish learn more about WEEKDAY, please send an email to smallbasic@gmail.com. You can help to improve information about WEEKDAY by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

PRINT WeekDay(DATE)
PRINT WeekDay(Julian(31, 12, 2001))
PRINT WeekDay(31, 12, 2001)

Comments

SPLIT "Sun Mon Tue Wed Thu Fri Sat", " ", wd
today = "Today is " + wd(WEEKDAY(DATE)) + " " + DATE
PRINT today