fix(datepicker): properly handle strings for minDate (fixes #538, fixes #539)