How do I get time picker in 12 hours and with leading zeroes for hours less than 10 ?
Current code;
$('.time').flatpickr({
enableTime: true,
noCalendar: true,
dateFormat: "h:i K",
});
The output I get is 6:30 AM but I want to get 06:30 AM.
Try with Capital 'H'
$('.time').flatpickr({ enableTime: true, noCalendar: true, dateFormat: "H:i K", });