OxL Reference

method Date.toIso

The date as ISO 8601: 2026-11-03.

Example:

oxl✓ checked in CI
use std.time { Date }

fn main() io {
  print(Date.of(2026, 11, 3)!.toIso())
}
Output
2026-11-03
pub(api) fn toIso() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also