jQuery timepicker time format not working

0 votes

I have a timepicker form element:

<input type="text" name="start_time" class="timepicker" placeholder="Start Time*" required>

which I'm trying to format but it's not working:

enter image description here

I followed the documentation and added timeFormat like so:

  $('input.timepicker').timepicker({
    interval: 30,
    minTime: '8:00 am',
    maxTime: '11:30 pm',
    startTime: '8:00 am',
    timeFormat: 'h:mm p',
    dynamic: true,
    dropdown: true,
    scrollbar: true
  });

So I don't understand why it's not working. Any help would be appreciated!

Jun 16, 2022 in JQuery by gaurav
• 23,260 points
657 views

1 answer to this question.

0 votes

Steps to change Time Format of TimePicker widget

In the HTML page, add a <input> element to configure TimePicker widget. // Change time format for TimePicker controls as follows. $(function () { $('#time'). ejTimePicker({ timeFormat: "h:mm:ss tt" }); });

answered Jun 16, 2022 by rajatha
• 7,640 points
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP