This is a migrated thread and some comments may be shown as answers.

how to format a date

3 Answers 140 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shirya
Top achievements
Rank 1
Shirya asked on 25 Mar 2009, 06:14 PM
Hello,
I have a radGridViewDateTimeColumn, and  i would like know how can i display my dates without the time  in my gridView
Thank you
Shirya

3 Answers, 1 is accepted

Sort by
0
Fabien
Top achievements
Rank 2
answered on 25 Mar 2009, 08:05 PM
hi,

same question, FormatString don't work

B.R.

Fabien
0
Ramius
Top achievements
Rank 1
answered on 26 Mar 2009, 11:24 AM

Hello,

you need to set the FormatString property with the correct value. For example:

FormatString = "{0:dd/MM/yyyy}"

Now the GridViewDateTimeColumn shows only a date.

Kind regards,

Ramius

0
Shirya
Top achievements
Rank 1
answered on 26 Mar 2009, 12:56 PM
Thanks for the answer, this worked
Tags
GridView
Asked by
Shirya
Top achievements
Rank 1
Answers by
Fabien
Top achievements
Rank 2
Ramius
Top achievements
Rank 1
Shirya
Top achievements
Rank 1
Share this question
or