API Reference › Date › Date.year
method

Date.year

Date.year(date) -> int

The calendar year of a Date.

Example

program Demo {
  handler Step phase Update {
    let y = Date.year(Date.new(2026, 8, 30))   # 2026
  }
}
← All symbols