Convert kendodatepicker format to .Net DateTime

3 posts, 0 answers
  1. Madzie
    Madzie avatar
    65 posts
    Member since:
    Apr 2012

    Posted 17 Nov 2013 Link to this post

    The Json value of kendodatepicker that is received at .net csharp code is "\"2013-11-18T03:38:21.843Z\""What is the best and universal way to parse/convert this format to c# DateTime ?
  2. Madzie
    Madzie avatar
    65 posts
    Member since:
    Apr 2012

    Posted 19 Nov 2013 Link to this post

    Any help on this ?
    And also, in javascript when it is bound to one of the variables, the value is shown as Tue Nov 19 2013 17:27:51 GMT-0800 (Pacific Standard Time). 
    I need to get just the date - 11/18/2013 or any other format... as it displays in the kendodatepicker textbox.
  3. Kendo UI is VS 2017 Ready
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 20 Nov 2013 Link to this post

    Hello Madzie,

    In general, you define custom model binder and parse the incoming date in the way you want. Check this stackoverflow thread dedicated to the same subject.

    Please note that this issue is related to ASP.NET MVC framework than Kendo UI.

    Regards,
    Georgi Krustev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top