Answers for "datetimepicker how to display only current motnh"

0

datetimepicker how to display only current motnh

// temp vars used below
var currentTime = new Date() 
var minDate = new Date(currentTime.getFullYear(), currentTime.getMonth(), +1); //one day next before month
var maxDate =  new Date(currentTime.getFullYear(), currentTime.getMonth() +2, +0); // one day before next month
$( "#datepicker" ).datepicker({ 
minDate: minDate, 
maxDate: maxDate 
});
Posted by: Guest on August-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language