jQuery datepicker getMinDate '+1d'
- by Adrian Adkison
Once I have set the minDate property of a datepicker with the convenient string syntax
$(elem).datepicker('option','minDate','+1d +3m');
how can I get the date object of the minDate? To help illustrate, there is a method
$(elem).datepicker('getDate');
which returns the date that is entered in the input in the format of a date object. I would like the same thing but for datepicker('getMinDate'). There is an option like this
$(elem).datepicker('option','minDate');
but this returns '+1d +3m' which is not helpful. I need the actual date object to compare with another date object. Any ideas?