OxL Reference

method Date.weekday

The day of the week.

Example:

oxl✓ checked in CI
fn main() io {
  print("{2026-11-03.weekday()}")
}
Output
Tue
pub(api) fn weekday() -> Weekday

Since. 1.0.0-beta

Returns

Weekday

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:1374

See also