954,113 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Date formatt

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

VIPER5646
Junior Poster in Training
84 posts since Mar 2009
Reputation Points: 10
Solved Threads: 2
 

Set DefaultCellStyle.Format property of Columns collection.

DataGridView1.Columns(0).DefaultCellStyle.Format = "MMM-dd-yyyy"
__avd
Posting Genius (adatapost)
Moderator
8,646 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,240
 

Thank you adatapost
for your help

VIPER5646
Junior Poster in Training
84 posts since Mar 2009
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You