AngularAngular JS Get Today Date and Last Week date from current date in angularJs By Rahul Bhutani - June 22, 2020 0 746 Share Facebook Twitter Google+ Pinterest WhatsApp $scope.today_date = new Date().toISOString().slice(0,10); $scope.lastWeek = new Date(); $scope.lastWeek = $scope.lastWeek.setDate($scope.lastWeek.getDate()-7); $scope.lastWeek = moment($scope.lastWeek).format('YYYY-MM-DD');