how to set am/pm format in jquery using datetimepicker

后端 未结 8 1370
孤独总比滥情好
孤独总比滥情好 2021-01-18 09:14

this is my jquery code.eventdatpicker is display date only,but occasionStartTime and occasionEndTime it display 24 hours format only how to change this format to am/pm forma

8条回答
  •  孤城傲影
    2021-01-18 09:39

    Use this plugin to unobtrusively add a datetimepicker, datepicker or timepicker dropdown to your forms. It's easy to customize options.

    You can download Plugin: Download

    add js and css to head tag:

    
    
    

    add this code to you want show:

    $(function () {
        $('#video_schedule').datetimepicker({
            step:5,
            minDate:0,
            formatTime:'H:i'
        });
    });
    

提交回复
热议问题