I had this problem. One of the answers helped me fix my problem but, after publishing the website on Azure, the problem persists. I've checked the jquery.validate file that was published via Visual Studio Online and it has my fix. Any ideas, what I'm facing here?
Asked
Active
Viewed 235 times
0
-
Are you saying it works in localhost but fails on Azure? – Jul 22 '14 at 22:31
-
Exactly. I know it makes very little sense, but that's what's happening. I republished it right after running it on loclhost and got the same problem. – Guilherme Lofrano Corneto Jul 23 '14 at 03:56
-
I'll try to do the validation via jquery on the cshtml file, not on the jquery-validate (changing the original code, that is). I'll post any results. – Guilherme Lofrano Corneto Jul 23 '14 at 04:00
-
You link has the date format dd/mm/yyyy and I'm assuming you are using the same format. Have you set globalisation to the required culture in your web.config file? – Jul 23 '14 at 04:03
-
I didn't! I didn't even know that was necessary. Trying it right now, but you can give an answer on how to properly set it. I'm from Brazil, if you want to give the code with my localization, I'd be glad. – Guilherme Lofrano Corneto Jul 23 '14 at 04:13
-
Just tried using "pt-BR" both on culture and uiculture attributes. No success. – Guilherme Lofrano Corneto Jul 23 '14 at 04:21
-
In your web config file in the `
` section add the following ` – Jul 23 '14 at 04:22`. If this works, I'll post answer with more detail -
It didn't work. Still showing the same problem. I really thought it could be this. – Guilherme Lofrano Corneto Jul 23 '14 at 04:38
-
One final thought. Have you included jquery globalisation? Alternatively, have a look at [this answer](http://stackoverflow.com/questions/9773746/how-to-fix-regional-settings-for-jquery-datepicker-so-it-works-in-firefox-and-ie) – Jul 23 '14 at 04:53
-
I'm not sure what jQuery globalization is. And that answer doesn't really work for me. – Guilherme Lofrano Corneto Jul 23 '14 at 05:40
-
[jquery globalize](https://www.nuget.org/packages/jquery-globalize/) is a NuGet package designed to work with jqueryUI – Jul 23 '14 at 05:47
-
I've installed the package but I'm not sure on how to use it – Guilherme Lofrano Corneto Jul 23 '14 at 15:50