DateTime format

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

    Posted 22 Jan Link to this post

    Hello,

    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
    Admin
    Polya avatar
    200 posts

    Posted 26 Jan 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:
    https://github.com/telerik/xaml-sdk/tree/master/PivotGrid/CustomDateTimeGroupDescription

    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.

    Regards,
    Polya
    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 WPF is Visual Studio 2017 Ready
Back to Top