we use the JQuery UI Datepicker.
When i enter the date in this format: 9/22/2012 asp.net MVC says it is not in a valid format.
When i look at the viewmodel which is filled via the binding, it says for the datefield: NULL.
When i look at the request, i see this as the posted value: 9%2f22%2f2012
in the protected override void OnActionExecuting(ActionExecutingContext filterContext)) I've set Culture like this
CultureInfo culture = new CultureInfo(language.LanguageISO);
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
where language.LanguageISO is, in this case, 'en'
I thought that the model binder would pick up the culture?
Can it be that it is a problem that the slash in the date is escaped as %2f?