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
If you are already in an Angular project you could use $filter('date').
For example:
var myDate = new Date(); var myWeek = $filter('date')(myDate, 'ww');