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

后端 未结 7 1501
不思量自难忘°
不思量自难忘° 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条回答
  •  -上瘾入骨i
    2020-12-29 18:45

    Solution working for ASP.NET

    @using (Html.BeginForm("ActionName", "ControllerName"))
    {
        @Html.HiddenFor(m => m.DateFrom)
        @Html.HiddenFor(m => m.DateTo)
    
        
    @Html.LabelFor(m => m.DateFrom)
    @Html.LabelFor(m => m.DateTo)
    } @section scripts { }

提交回复
热议问题