SyntaxFix
Write A Post
Hire A Developer
Questions
If you already use Angular, then you could profit $filter('date').
$filter('date')
For example:
var myDate = new Date(); var myWeek = $filter('date')(myDate, 'ww');