How do I get the current weeknumber of the year, like PHP\'s date(\'W\')?
date(\'W\')
It should be the ISO-8601 week number of year, weeks starting
With Luxon (https://github.com/moment/luxon) :
import { DateTime } from 'luxon'; const week: number = DateTime.fromJSDate(new Date()).weekNumber;