- MomentJS - Home
- MomentJS - Overview
- MomentJS - Environment Setup
- MomentJS - Introduction
- MomentJS - Parsing Date And Time
- MomentJS - Date Validation
- MomentJS - Getter/Setter
- Manipulate Date And Time
- Formatting Date And Time
- MomentJS - Date Queries
- MomentJS - Internationalization
- MomentJS - Customization
- MomentJS - Durations
- MomentJS - Utilities
- MomentJS - Plugins
- MomentJS - Examples
Selected Reading
MomentJS - Weeks in year
This method will get the number of weeks according to locale in the current moment's year.
Syntax
moment().weeksInYear();
Example
var m = moment().weeksInYear();
Output
Weeks in Year (ISO)
This method will get the number of weeks according to the ISO in the current moment's year.
Syntax
moment().isoWeeksInYear();
Example
var m = moment().isoWeeksInYear();
Output
momentjs_getter_setter.htm
Advertisements