DateTime format

2 posts, 1 answers
  1. Gianpaolo
    Gianpaolo avatar
    9 posts
    Member since:
    Nov 2013

    Posted 22 Jan 2016 Link to this post


    When grouping by a DateTime property without selecting a step, the value is formatted as 'mm/dd/yyyy HH:mm:ss'. Is it possible to change the format to not show the Time part of the DateTime object?

  2. Answer
    Polya avatar
    238 posts

    Posted 26 Jan 2016 Link to this post

    Hello Gianpaolo,

    You would need to implement a custom DateTimeGroupDescription as demonstrated in the following example from our online XAML SDK Repository:

    Overriding the ToString() method of the custom Group will allow to achieve the needed format. You can also take a look at this forum thread and this help article.

    Hope this helps.

    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