Create event does not get start and end dates

2 posts, 0 answers
  1. Jarosław
    Jarosław avatar
    3 posts
    Member since:
    Mar 2016

    Posted 25 Apr 2016 Link to this post


    I'm having some problems with creating events in Kendo. When I create event it calls server but it does not fill in start and end dates in my event view model.

    public class EventVm : IGanttTask
        public int Id { get; set; }
        public int? ParentId { get; set; }
        public int OrderId { get; set; }
        public decimal PercentComplete { get; set; }
        public DateTime Start { get; set; }
        public DateTime End { get; set; }
        public string Title { get; set; }
        public bool Summary { get; set; }
        public bool Expanded { get; set; }

    What I see in Request.Form is:

    Request.Form["Start"] == "4/24/2016 12:00:00 AM"

    What I suspect is going on is - date is in US format, while my server is in UK or PL and probably MVC does not want to deserialize this date correctly and puts '01/01/0001 00:00:00 AM' in my  object.


    Can I somehow force kendo to put it in ISO format? Or specify format somehow? Or maybe I'm missing something completly different?

  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 27 Apr 2016 Link to this post


    This post is duplicated to:

    Hristo Valyavicharski
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top