Date formatt

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Mar 2009
Posts: 41
Reputation: VIPER5646 is an unknown quantity at this point 
Solved Threads: 0
VIPER5646's Avatar
VIPER5646 VIPER5646 is offline Offline
Light Poster

Date formatt

 
0
  #1
Oct 22nd, 2009
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
Viper
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
Oct 23rd, 2009
Set DefaultCellStyle.Format property of Columns collection.
  1. DataGridView1.Columns(0).DefaultCellStyle.Format = "MMM-dd-yyyy"
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 41
Reputation: VIPER5646 is an unknown quantity at this point 
Solved Threads: 0
VIPER5646's Avatar
VIPER5646 VIPER5646 is offline Offline
Light Poster
 
0
  #3
Oct 23rd, 2009
Thank you adatapost
for your help
Viper
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 219 | Replies: 2
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC