Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I am developping an application with ASP .Net MVC 4 which is french language based, almost of the treatements i have in my app, are based on dates.

For the date textfield i use jQuery DatePicker and i disable hand modifyig fields.

In my Model, i add

C#
[DataType(DataType.Date)]


But when submiting form, the Date Field Is not Validated if the date format is dd/MM/yyyy , but when the date format is MM/dd/yyyy, there is no problems of validation.

I tried to change the locale of my application & used jQuery.Globalize but no solution ! The error message is : The value « 29/04/2014 » is not a valid format for Date d'effet. (The message was displayed in french, but i traduce it for more comprehension).

Could you help me?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900