gijgo icon indicating copy to clipboard operation
gijgo copied to clipboard

how to set maxdate and mindate in Datetimepicker

Open rupalgohel opened this issue 5 years ago • 1 comments

How to set maxdate and mindate to datetimepicker?

var today = new Date(); $('#date-input').datetimepicker({ modal: true, footer: true, format: 'HH:MM yyyy-dd-mm', maxDate: today, });

rupalgohel avatar Apr 15 '20 14:04 rupalgohel

Hi, you have to set the datepicker in the config $('#date-input').datetimepicker({ datepicker: { minDate: new Date(), maxDate: new Date() }, modal: true, footer: true, format: 'HH:MM yyyy-dd-mm' });

fennellgb23 avatar Apr 20 '20 03:04 fennellgb23