This question is locked. New answers and comments are not allowed.
Hi there,
I'm using the Calendar control on a British system that has date format "dd/MM/yyyy".
I've got the following calendar:
If the user clicks a date in the default month (currently May), the url that is generated looks like this:
http://localhost/app/controller/action?date=20/05/2010
However, if I then click to change the month, to April, in this case and click a date (21st) the generated URL is this:
http://localhost/app/controller/action?date=4/21/2010
Which can't be parsed, because it's switched to MM/dd/yyyy.
Is this a known bug? Is there anything I can do to the calendar's configuration to work around the problem -- for example, if I could force it to use an ISO formatted date string, that would work.
I'm using the Calendar control on a British system that has date format "dd/MM/yyyy".
I've got the following calendar:
| <%= Html.Telerik().Calendar() |
| .Name("Calendar") |
| .HtmlAttributes(new { style = "width:100%;" }) |
| .Selection(settings => settings |
| .Action("Index", "Courses", new { date = "{0}" }) |
| .Dates(Course.GetCourseDates()) |
| ) |
| .Value(Request["date"] != null ? DateTime.Parse(Request["date"]) : DateTime.Now) |
| %> |
If the user clicks a date in the default month (currently May), the url that is generated looks like this:
http://localhost/app/controller/action?date=20/05/2010
However, if I then click to change the month, to April, in this case and click a date (21st) the generated URL is this:
http://localhost/app/controller/action?date=4/21/2010
Which can't be parsed, because it's switched to MM/dd/yyyy.
Is this a known bug? Is there anything I can do to the calendar's configuration to work around the problem -- for example, if I could force it to use an ISO formatted date string, that would work.