jQuery UI DatePicker - Change Date Format

前端 未结 28 1774
后悔当初
后悔当初 2020-11-21 16:39

I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:

And the

28条回答
  •  囚心锁ツ
    2020-11-21 17:21

    inside the jQuery script code just paste the code.

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

    this should work.

提交回复
热议问题