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
Another library-based option: use d3-time-format:
const formatter = d3.timeFormat('%U'); const weekNum = formatter(new Date());