static int weekNumber(DateTime date) { final dayOfYear = int.parse(DateFormat('D').format(date)); return ((dayOfYear - date.weekday + 10) / 7).floor(); }