angular-material-datetimepicker
angular-material-datetimepicker copied to clipboard
How to set the minDate as a string?
I'm trying to set the minDate as a string in the HTML. I've tried: min-date="2016-08-10" But this doesn't work. Should it be a different format?
Browser support for parsing strings is inconsistent. Try with moment.
<input mdc-datetime-picker
min-date="minDate">
$scope.minDate = moment("2016-08-10");
https://momentjs.com/docs/