month property

int get month

Gets the month component (1-12).

Example:

final zdt = ZonedDateTime.parse('2023-12-25T15:30:00+01:00');
print(zdt.month); // 12 (December)

Implementation

int get month => _localDateTime.month;