how to set am/pm format in jquery using datetimepicker

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

    MVC Default Dateformat using Bootstrap Datepicker3 - very useful for beginers

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    
    
    
    

        $(function () {
            $('.datetime').datetimepicker({
                format: 'DD-M-YYYY hh:mm A'
            });
    
        });
    
    
    

提交回复
热议问题