Jquery datepicker format date not working

后端 未结 12 2107
我在风中等你
我在风中等你 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 22:53

    try out this

    $(".datepicker").datepicker({dateFormat: 'dd-mm-yy'});
    

    small letter will works

提交回复
热议问题