LocalDate.isoWeekDate constructor

LocalDate.isoWeekDate(
  1. int weekYear,
  2. int weekOfWeekYear,
  3. DayOfWeek dayOfWeek
)

Returns the local date corresponding to the given 'week year', "week of week year", and "day of week" in the ISO calendar system, using the ISO week-year rules.

  • weekYear: ISO-8601 week year of value to return
  • weekOfWeekYear: ISO-8601 week of week year of value to return
  • dayOfWeek: ISO-8601 day of week to return

Returns: The date corresponding to the given week year / week of week year / day of week.

see: https://en.wikipedia.org/wiki/ISO_week_date

Implementation

factory LocalDate.isoWeekDate(int weekYear, int weekOfWeekYear, DayOfWeek dayOfWeek) =>
    WeekYearRules.iso.getLocalDate(weekYear, weekOfWeekYear, dayOfWeek, CalendarSystem.iso);