jQuery Timepicker time field format

Jay picture Jay · Jul 5, 2013 · Viewed 15.5k times · Source

I am using jQuery Timepicker here, now in my time textbox, I get time as HH:MM:SS format, but i want it in HH:MM format.

I have tried various timeformat in default initialization, setting showsecond as false but nothing seems to work.

Answer

Amani picture Amani · Jul 5, 2013

Are you using jQuery >= 1.7?

There is no option showsecond in the documentation at GitHub

Did you try:

$('#timeformatExample1').timepicker({ 'timeFormat': 'H:i' });