I have the jsfiddle http://jsfiddle.net/92yv2h9n/
As you can see, the first option of dropdown shows the current date. The next two options should show the future dates.
for e.g- today is 11th dec. so future date of 12th dec and 13th dec should be shown. currently it shows the present date only. Its in mm-dd-yyyy format.
Can someone please highlight how can i achieve the future dates.
PS- It should automatically note that feb has 28 days and dec will have 31 days and so on.
Here is the code.
JS code
function Ctrl($scope) {
$scope.date = new Date();
}
HTML code
<div ng-app ng-controller="Ctrl">
<select>
<option>{{date | date:'MM-dd-yyyy'}}</option>
<option>{{date | date:'MM-dd-yyyy'}}</option>
<option>{{date | date:'MM-dd-yyyy'}}</option>
</select>
</div>