method Date.fmt
Formats with a pattern (dd.MM.yyyy); an empty pattern is ISO 8601 (2026-11-03).
Example:
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) -> strSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
pattern | str |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1538