TimePicker error: The field Time must be a date

3 posts, 0 answers
  1. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 03 Apr 2014 Link to this post

    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. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 07 Apr 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 07 Apr 2014 in reply to Alexander Popov Link to this post

    That could be possible.  My server is in Canada and I'm developing in California.  I'll check the Globalization docs.

    Thanks.
Back to Top