MomentJS - Week of year (ISO)


Advertisements

This method gets/sets the week of the year as per the ISO.

Syntax

moment().isoWeek(Number);
moment().isoWeek();
moment().isoWeeks(Number);
moment().isoWeeks();

Example

var m = moment().isoWeek();
var d = moment().isoWeek(50);
var a = moment().isoWeek(90);

Output

Week of Year ISO
momentjs_getter_setter.htm
Advertisements