change determination of date string for mindate and maxdate
Merge pull request #1478 from craigh/datepicker

change determination of date string for mindate and maxdate