weekOfYear property

  1. @useResult
int get weekOfYear

The ordinal week of the year.

A week is between 1 and 53, inclusive.

See weeks per year.

LocalDateTime(2023, 4, 1, 12, 30).weekOfYear; // 13

Implementation

@useResult int get weekOfYear => _native.weekOfYear;