This is a migrated thread and some comments may be shown as answers.

[Solved] Calendar breaks when using non english culture

0 Answers 73 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oleg
Top achievements
Rank 1
Oleg asked on 09 Dec 2010, 08:52 PM
Hi Telerik Team,

I've encountered a problem when Telerik calendar doesn't seem to work when selecting dates using "es-MX" culture.

The scenario is as follows:
0. Page accepts model values through query string parameters, so in this case StartDate is passed through query string

1. Define calendar (format is the key)
Html.Telerik().DatePickerFor(x => x.StartDate).Name( "StartDate" )
                               .Format("ddd, MMM dd yyyy HH:mm")....

2. CurrentThread.CurrentCulture and CurrentUICulture is set to "es-MX"

3. Invoke action passing StartDate equal to "mar, sep 28 2010 00:00" (mar is wednsday in Spanish)

Calendar is throwing exception:
"Specified argument was out of the range of valid values.
Parameter name: Date should be bigger than MinDate and less than MaxDate."

Tags
Date/Time Pickers
Asked by
Oleg
Top achievements
Rank 1
Share this question
or