HTML5 Datepicker (Min Date Problem for iOS)


#1

I have this code,

<input style="font-size:15px;" min="{{mindate | date:'yyyy-MM-dd'}}" type="date" ng-model="di.date">

Min date is working for Android, but not for iOS.

Any workaround that for minDate to work on iOS App?

This is my controller:

$http.post(base_url+'getAdvanceDaysC').
              success(function(data) {
                    var day = parseInt(data.aday);
                    var result = new Date();
                    result.setDate(result.getDate() + day);
                    var dd = result.getDate();
                    var mm = ("0" + (result.getMonth() + 1)).slice(-2)
                    var yy = result.getFullYear();
                    var ndate = yy+"-"+mm+"-"+dd;
                    $scope.mindate = ndate;

              }).
              error(function(data,status,headers,config) {
                  alert('Unable to connect to Server.');
              });

Please advise.