Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to use Date Format in Datagridview in C#.Net(Window Form)
Posted
Updated 29-Jan-13 19:31pm
v2

 
Share this answer
 
Try this:
C#
<asp:boundfield htmlencode="false" datafield="date_column" dataformatstring="{0:dd-MM-yyyy}"/>
 
Share this answer
 
v2
Comments
ALOK CHANDAN 30-Jan-13 1:32am    
but i want to use in window form not ASP please answer me for Window Form

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900