Hey,
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?