Tools/datetime/weekday

datetime/weekday

Day of week, ISO week number, day of year, quarter, and weekend flag for a date.

Free / no pricing configured

What it does

Returns calendar facts for a date: the day of the week, ISO weekday number (1=Monday), whether it falls on a weekend, the ISO week number and week-year, the day of the year, and the calendar quarter.

Primary use cases

  • "What day of the week is X?"
  • Determining the ISO week number for scheduling or reporting.
  • Checking whether a date is a weekend.

Good to know

Accepts YYYY-MM-DD or ISO 8601; defaults to today. Public-holiday awareness lives in the business_days tool and the holidays namespace. Computed locally.

Parameters

datestringoptional

Date or datetime (YYYY-MM-DD or ISO 8601). Defaults to today.

datetime/weekday — Faro