Passing a DateTime to controller via URL causing error in ASP .NET MVC 3 (culture)

前端 未结 4 1709
轻奢々
轻奢々 2021-02-04 02:45

My application is setted with pt-BR culture (Date is dd-mm-yyyy) in web.config:



        
4条回答
  •  萌比男神i
    2021-02-04 03:13

    One approach would be to accept the date as a string and then manipulate it in the controller to the correct locale/culture.

提交回复
热议问题