how to find weeks in a year in moment js code example Example: moment get iso week number const weekNumber = moment().format("w");