In react js use this option for time show in 12 Hr format eg. "4:45 AM" options={{ enableTime: true, noCalendar: true, dateFormat: "h:i K", }}
try this:
<Flatpickr
value={requestDate}
onChange={(date) => setRequestDate(date)}
options={{
enableTime: true,
noCalendar: true,
dateFormat: "h:i K"
}}
id="default-picker"
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With