iso_calendar 1.0.0 iso_calendar: ^1.0.0 copied to clipboard
Dart package for calculating the year and week number 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
}