Convert utc server date to local time

5 posts, 0 answers
  1. Gregory
    Gregory avatar
    14 posts
    Member since:
    Feb 2014

    Posted 03 Sep 2015 Link to this post

    Anyone know how I can display a utc date/time I'm getting from my server as the user's local time? I'm putting this date/time in a ClientRowTemplate if that matters. 
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 07 Sep 2015 Link to this post

    Hi Gregory,

    Please refer to our Using UTC time on both the client and the server article that shows how to implement such functionality.

    Regards,
    Radoslav
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Gregory
    Gregory avatar
    14 posts
    Member since:
    Feb 2014

    Posted 08 Sep 2015 Link to this post

    I think I found the right way to format my date. However, I'm having an issue with the ClientRowTemplate not running again on grid.refresh() it seems to only run my date formatting method when the data is read from the datasource again. Any ideas why grid.refresh() doesn't seem to run my ClientRowTemplate again or have a work around?
  5. Gregory
    Gregory avatar
    14 posts
    Member since:
    Feb 2014

    Posted 08 Sep 2015 Link to this post

    Sorry, spoke too soon.​ Refresh does run my ClientRowTemplate again. However. my dates aren't getting formatted to local time after a refresh tho. I'll keep digging. Thank you for your time. Still researching!
  6. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 09 Sep 2015 Link to this post

    Hello Gregory,

    If you have problems with formatting dates you can check the following help article which shows the possible options to format a date with kendo api:
    http://docs.telerik.com/kendo-ui/framework/globalization/dateformatting

    Regards,
    Radoslav
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready