OxL Reference

method Ldt.fmt

Formats with a pattern (dd.MM.yyyy HH:mm); an empty pattern is ISO 8601.

Example:

oxl✓ checked in CI
fn main() io {
  print("{2026-11-03T18:30.fmt("dd.MM.yyyy HH:mm")}")
}
Output
03.11.2026 18:30
pub(api) fn fmt(pattern: str) -> str

Complexity. O(len(pattern)).

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:1751

See also