weekOfMonth property

int get weekOfMonth

The ordinal week of the month (1–5).

Implementation

int get weekOfMonth => ((day - 1) ~/ 7) + 1;