How to make jqueryUI datepicker submit in a different format than what is being displayed?

后端 未结 7 1468
不思量自难忘°
不思量自难忘° 2020-12-29 18:14

I\'m working on some internationalization using jQueryUI. I have a DatePicker control on a form that is properly working in the French language.

When I select a dat

相关标签:
7条回答
  • 2020-12-29 19:01
    <input type="text" name='fieldName' id="datepicker" value="" style="width: 100px;" />
    <script type="text/javascript">
        $( "#datepicker" ).datepicker( "option", "dateFormat", 'dd/mm/yy' );
        $( "#datepicker" ).datepicker();
    </script>
    
    0 讨论(0)
提交回复
热议问题