Click here to Skip to main content
15,911,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In database i am declare one column is date datatype but in runtime i am get date and time in gridview i am only show date in gridview how ....
Posted

1 solution

<asp:boundfield datafield="MyDate" dataformatstring="{0:MM/dd/yyyy}" xmlns:asp="#unknown">

from http://stackoverflow.com/questions/6075754/how-can-you-show-the-date-in-a-gridview-as-a-date-only-instead-of-a-datetime[^]
 
Share this answer
 

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