weekday
Day of the week.
Syntax
Section titled “Syntax”v = weekday(serial_number, return_type)Description
Section titled “Description”Returns the day-of-week as an integer. return_type selects the convention: 1 (default, Sunday=1, Saturday=7), 2 (Monday=1, Sunday=7), 3 (Monday=0, Sunday=6), 11–17 (ISO-style with various week-start days).
Example
Section titled “Example”weekday(date(2026, 4, 28)) % 3 (Tuesday in Sun-start)See also
Section titled “See also”weeknum— Week of the year.isoweeknum— ISO 8601 week of the year.