month property - DateTime class - dart:core library (original) (raw)

description

int getmonth

The month [1..12].

final moonLanding = DateTime.parse('1969-07-20 20🔞04Z');
print(moonLanding.month); // 7
assert(moonLanding.month == DateTime.july);

Implementation

external int get month;