format date in jQuery UI datepicker

后端 未结 2 1486
余生分开走
余生分开走 2020-12-11 23:50

I use the datepicker from jQuery UI, but the format is like example today: 08/01/2013

But i want the format to be example today: 2013-08-01

Her

2条回答
  •  攒了一身酷
    2020-12-12 00:42

    You can directly set the date format from jquery-ui library,that's work for me.hope for you also

    in

    function Datepicker()
    {
      //other code
      dateFormat: "yy-mm-dd", // See format options on parseDate 
      //other code
    }
    

提交回复
热议问题