944,027 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 393
  • VB.NET RSS
Oct 22nd, 2009
0

Date formatt

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
VIPER5646 is offline Offline
83 posts
since Mar 2009
Oct 23rd, 2009
0
Re: Date formatt
Set DefaultCellStyle.Format property of Columns collection.
VB.NET Syntax (Toggle Plain Text)
  1. DataGridView1.Columns(0).DefaultCellStyle.Format = "MMM-dd-yyyy"
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Oct 23rd, 2009
0
Re: Date formatt
Thank you adatapost
for your help
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
VIPER5646 is offline Offline
83 posts
since Mar 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: MCI Sound Intensity
Next Thread in VB.NET Forum Timeline: How to save sent email sent via vb.net to folder





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC