Date format in datagrid

  • Thread starter Thread starter Niclas Lindblom
  • Start date Start date
N

Niclas Lindblom

Hi,

I have a bound column in a datagrid. The value in the database is using the
SQL datetime format which gives both date and time. How do I configure the
datagrid cell to only display the date in the format DD/MM/YYYY ? I have
tried

colDateCompleted.DataFormatString = "{0:d}"

but this still displays the whole date including the time.

Any help appreciated

Regards

Niclas
 
Back
Top