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

Invalid date on razor update

1 Answer 107 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Roderick Prince
Top achievements
Rank 1
Roderick Prince asked on 22 May 2014, 11:56 PM
ModelState.IsValid is false with an error in the model that shows: 
     "The value 'Thu May 22 2014 08:00:00 GMT-0700 (US Mountain Standard Time)' is not valid for Start."
     "The value 'Thu May 22 2014 12:00:00 GMT-0700 (US Mountain Standard Time)' is not valid for End."

I am assuming this is due to my complete lack of understanding about the Scheduler and its use of Timezone.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 26 May 2014, 03:10 PM
Hi Roderick,

This is the default string representation of JavaScript dates. ASP.NET MVC won't bind those strings to a valid DateTime object and that's why all dates should be sent in a .NET compatible format. The ASP.NET MVC wrappers for Kendo UI support this out of the box. Are you using them or Kendo UI Professional? Could you show us your current Scheduler configuration as well as the action method declaration?

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Roderick Prince
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or