angular-material-datetimepicker icon indicating copy to clipboard operation
angular-material-datetimepicker copied to clipboard

How to set the minDate as a string?

Open captainmorgan0 opened this issue 8 years ago • 1 comments

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?

captainmorgan0 avatar Aug 11 '16 02:08 captainmorgan0

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/

hexadecy avatar Feb 07 '17 21:02 hexadecy