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.

ZonedDateTime('Asia/Singapore', 2023, 4, 1).weekOfYear; // 13

Implementation

@useResult int get weekOfYear => _native.weekOfYear;