ISO Day of Week2.1.0+

  1. moment().isoWeekday(Number);
  2. moment().isoWeekday(); // Number

Gets or sets the ISO day of the week with 1 being Monday and 7 being Sunday.

As with moment#day, if the range is exceeded, it will bubble up to other weeks.

  1. moment().isoWeekday(1); // Monday
  2. moment().isoWeekday(7); // Sunday

A day name is also supported. This is parsed in the moment's current locale.

  1. moment().isoWeekday("Sunday");
  2. moment().isoWeekday("Monday");