how to set am/pm format in jquery using datetimepicker

后端 未结 8 1357
孤独总比滥情好
孤独总比滥情好 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:34

    in nowdays version, 2021 / 1 / Jan you have to type in e.g.:

            $('#dateTimePicker').datetimepicker({
                .....,
                formatTime:'g:iA',
                format: 'Y.m.d hh:mm A',
                .....
            }
    

    And you are done

提交回复
热议问题