OxL Reference

method Date.fmt

Formats with a pattern (dd.MM.yyyy); an empty pattern is ISO 8601 (2026-11-03).

Example:

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

fn main() io {
  print(Date.of(2026, 11, 3)!.fmt("dd.MM.yyyy"))
}
Output
03.11.2026
pub(api) fn fmt(pattern: str) -> str

Since. 1.0.0-beta

Parameters

NameType
patternstr

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also