JQuery Datepicker Will not post with UK date string

前端 未结 3 370
臣服心动
臣服心动 2021-01-13 11:40

Apologies for if the question is obvious but I can\'t figure out why it is suddenly not working. I have a jquery datepicker that has been working fine as long as I can remem

3条回答
  •  Happy的楠姐
    2021-01-13 12:17

    You can use the dateFormat, so in your javascript file (after the page is loaded etc.) you can place:

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

提交回复
热议问题