Jquery datepicker format date not working

后端 未结 12 2181
我在风中等你
我在风中等你 2021-01-01 22:23

Here is my code:

$(function () {
    $(\"#datepicker\").datepicker({ dateFormat: \'DD-MM-YY\' });
});

And the datetime picker is shown, but

12条回答
  •  鱼传尺愫
    2021-01-01 23:07

    Thats the default, meaning it does not recognise your option.

    try:

    dateFormat: 'dd-mm-yy'
    

    (small letters)

提交回复
热议问题