Raddatepicker date formate

2 posts, 0 answers
  1. j
    j avatar
    8 posts
    Member since:
    May 2009

    Posted 10 Feb 2011 Link to this post


    Is there anyway to format the datapicker's date format?

    For Radgridview's columns type are datetime and when click that cell within those columns, the cell shows datepicker. However, after select date,  it shows m/d/yyyy hh:mm:ss. Can it be formated to m/d/yyyy?

    below the code is we assign that column to the type of Datetime.

                        GridViewDataColumn dataColumn = (GridViewDataColumn)grid1.Columns[column];
                        dataColumn.DataType = typeof(System.DateTime);
                        dataColumn.DataFormatString = "{0:d}";

    Thank you
  2. Maya
    Maya avatar
    4062 posts

    Posted 11 Feb 2011 Link to this post

    Hi j,

    I have tested your code and once the DataFormatString is set to "{0:d}", the value is displayed as mm/dd/yyyy. Based on the information you provided, I get the impression that this is the format you require. Is that correct or is there any misunderstandings according to your necessities ?

    All the best,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top