week_of_year 2.2.0 copy "week_of_year: ^2.2.0" to clipboard
week_of_year: ^2.2.0 copied to clipboard

Adds extension method to get the ISO 8601 week of year from a date

example/example.dart

import 'package:week_of_year/week_of_year.dart';

void main() {
  final date = DateTime.now();
  print(date.weekOfYear); // Get the iso week of year
  print(date.ordinalDate); // Get the ordinal date
  print(date.isLeapYear); // Is this a leap year?
}
44
likes
140
pub points
93%
popularity

Publisher

verified publisherkada.se

Adds extension method to get the ISO 8601 week of year from a date

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on week_of_year