var t = $("#preDate").val(); var jsDate = new Date(t); var time = new Date().getTime(); var currentdate = new Date(time); var datetime1= "-"+jsDate.getDate()+"/"+(jsDate.getMonth()+1) +"/"+jsDate.getFullYear(); var datetime2 = currentdate.getDate()+"/"+(currentdate.getMonth()+1) +"/"+currentdate.getFullYear(); $("#myDtPicker").datetimepicker({ minTime:0, minDate:datetime1, maxDate:datetime2, startDate:datetime1, endDate:datetime2, formatTime: 'H:i', formatDate: 'd/m/Y', });
minDate: '0', maxDate: '+2M',
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)