title: Setting custom date for cordova-date-picker plugin
body: <p>I am facing issue with setting custom date for the cordova date picker plugin <a href="https://github.com/VitaliiBlagodir/cordova-plugin-datepicker" rel="nofollow">cordova-plugin-datepicker</a> in my cordova project. but it is showing only current date.</p>
  
  <p>ex:</p>
  
  <pre><code>var options = {
              date: new Date('12/12/2015'),
              mode: 'datetime', // or 'time'
              minDate :  moment().subtract(100, 'years').toDate(),
              allowOldDates: true,
              allowFutureDates: true,
              androidTheme : 2,
              doneButtonLabel: 'DONE',
              doneButtonColor: '#000000',
              cancelButtonLabel: 'CANCEL',
              cancelButtonColor: '#000000'
        };
  
  $ionicPlatform.ready(function() {  
  
              $cordovaDatePicker.show(options)
              .then(function(date){
  
                  $scope.appointmentVM.dateFrom = new Date(date).valueOf().toString();
  
              });
  
        });
  </code></pre>
  
  <p>Here you can see <code>new Date('12/12/2015')</code> is set but it will show current date in the picker instead of set date.</p>
  
  <p>Could you please help.</p>
  
  <p><strong>Updated:</strong>
  I got the solution :</p>
  
  <p>we have to set the minDate as below in the date options. will solve the issue</p>
  
  <pre><code>minDate : ionic.Platform.isIOS() ? moment().subtract(100,'years').toDate() : moment().subtract(100,'years').valueOf(),
  </code></pre>