Skip to content

DayName

Returns the day of the week for a given date.

$ wo 'DayName[{2026, 4, 15}]'
Wednesday

Any date specification works, including partial date lists and date strings.

$ wo 'DayName[{2024, 2}]'
Thursday
$ wo 'DayName["Feb 1 2024"]'
Thursday

A bare number is an absolute time in seconds since the start of 1900, not a year.

$ wo 'DayName[3155673600]'
Saturday