Skip to content

weekday

time · scripts/time/weekday.m

: n = weekday (d)
: [n, s] = weekday (d, fmt)

Day of the week of serial dates (or date strings): 1 is Sunday, 7 is Saturday. The second output is a character matrix of day names, one row per date; fmt is "short" (default) or "long".