Answers for "how to disable previous date in datepicker using angular 6"

0

how to disable previous date in datepicker using angular 6

minDate: Moment;
maxDate: Moment;
ngOnInit() {
 const currentYear = moment().year();
 this.minDate = moment([currentYear - 1, 0, 1]);
 this.maxDate = moment([currentYear + 1, 11, 31]);
}
Posted by: Guest on June-08-2021

Code answers related to "how to disable previous date in datepicker using angular 6"

Code answers related to "Javascript"

Browse Popular Code Answers by Language