get a month from a date in angularjs code example Example: get month angular with 0 ("0" + ((new Date()).getMonth() + 1)).slice(-2)