fix(datepicker): working minDate/maxDate validation (fixes #545, fixes #663)