number of week in that year using moment npm code example Example: moment to javascript date let now = moment() let now = now.toDate()