This is a migrated thread and some comments may be shown as answers.
TimePicker error: The field Time must be a date
2 Answers 53 Views
This is a migrated thread and some comments may be shown as answers.
King Wilder
Top achievements
Rank 2
King Wilder asked on 04 Apr 2014, 03:25 AM
I can't seem to get the TimePicker to work in my ASP.NET MVC 5 application.

@(Html.Kendo().TimePicker().Name("Time").Value(DateTime.Today.AddHours(7)))

I get the error: The field Time must be a date

Any ideas what I'm doing wrong?

2 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 07 Apr 2014, 12:04 PM
Hi King,

This could happens in case the server and the client are using different culture configuration. I would suggest checking the ASP.NET MVC Globalization article, which covers this topic.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
King Wilder
Top achievements
Rank 2
answered on 07 Apr 2014, 03:09 PM
That could be possible.  My server is in Canada and I'm developing in California.  I'll check the Globalization docs.

Thanks.
Asked by
King Wilder
Top achievements
Rank 2
Answers by
Alexander Popov
Telerik team
King Wilder
Top achievements
Rank 2
Share this question
or