Search code examples
jqueryclockpicker

Parameter to set am/pm in clockpicker()


I am using below clockpicker() jquery

$('#mon_from').clockpicker({
    autoclose: true
});

This displays 24 hour clock. Can anybody knows the parameter to set am/pm clock?


Solution

  • If you check the documentation, there is a twelvehour property you can set to achieve what you need. By default it's false, you require true:

    $('#mon_from').clockpicker({
      autoclose: true,
      twelvehour: true
    });