Hi
I have a Datagrid with column(1) showing the date.
The dates are being Displayed as 01-13-2009 (mm-dd-yy).
That's how it is saved in the DB.
I wouls like it to be displayed in the Datagrid in the following format
Jan-13-2009.
Can anyone help?

Thank you

Set DefaultCellStyle.Format property of Columns collection.

DataGridView1.Columns(0).DefaultCellStyle.Format = "MMM-dd-yyyy"

Thank you adatapost
for your help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.