I'm building a system that need user to pick a date. And from that date I need to add few more days for certain purposes. Theses are the user's input:
<input type="date" ng-model="req.pickup_date" required>
<input type="number" min="1" max="60" ng-model="req.days" required>
So how do I do something like this in the correct way?
var c = 86400000;
$scope.req.return_date = new Date($scope.req.pickup_date + (2 * c));