iso_calendar 0.0.5 iso_calendar: ^0.0.5 copied to clipboard
Dart package for calculating a number of years and week numbers based on ISO-8601.
import 'package:iso_calendar/iso_calendar.dart';
void main() {
final isoCalendar = IsoCalendar.fromDateTime(DateTime(2021, 1, 1));
print(isoCalendar.year); // 2020
print(isoCalendar.weekNumber); // 52
}