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

后端 未结 7 1473
不思量自难忘°
不思量自难忘° 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:00

    There's 2 configuration options for that: altField and altFormat. http://api.jqueryui.com/datepicker/#option-altField If you specify an altField, that field will be updated too, and will have the altFormat. Normally you will want make the altField a hidden field, soyou can ignore the regular field and send to db the altField.

提交回复
热议问题