API Reference › DateTime › DateTime.month
method

DateTime.month

DateTime.month(dt) -> int

The calendar month of the instant dt (UTC), 1–12.

Example

program Demo {
  handler Step phase Update {
    let m = DateTime.month(DateTime.from(2000, 3, 9, 0, 0, 0))   # 3
  }
}
← All symbols