<input id="myDateTime"> --- script --- var dt = new Date(); document.getElementById("myDateTime").flatpickr({ dateFormat: 'n/j/y h:i K', defaultDate: dt, allowInput: true, enableTime: true, minDate: dt });