Showing only Date (Not time) in a datetime column in a gridview.

5 posts, 0 answers
  1. Johnny Funch
    Johnny Funch avatar
    3 posts
    Member since:
    Aug 2008

    Posted 02 Sep 2009 Link to this post

    Hi,

    How do I format a datetime column in a radgridview control?

    I want to show ONLY the date part of the variable. 

    I DID try removing it before entering it into the Grid, but then it just shows 12:00:00

    I am guessing it has to do with DataEditFormatString or FormatString in the advanced settings for the column, but I've tried all kinds of strings with no luck.

    Thanks
    Johnny
  2. Johnny Funch
    Johnny Funch avatar
    3 posts
    Member since:
    Aug 2008

    Posted 02 Sep 2009 Link to this post

    Figured it out...

    Just add {0:dd/MM/yy} to the FormatString property under Advanced Settings for the Column in the property builder.

    tnx
    ~j
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nick
    Admin
    Nick avatar
    767 posts

    Posted 02 Sep 2009 Link to this post

    Hello Johnny Funch,

    Thank you for sharing that with the community.

    Greetings,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Gauri
    Gauri avatar
    32 posts
    Member since:
    Jan 2012

    Posted 28 Sep 2012 Link to this post

    Thanks
  6. Aneta
    Aneta avatar
    3 posts
    Member since:
    Feb 2013

    Posted 10 Feb 2015 Link to this post

    Hello,

    what if i don't want to set custom format on every single grid? Is any Chance i can just set Format to Short and not have a time included (in entire application)?
Back to Top
UI for WinForms is Visual Studio 2017 Ready