Friday, March 5, 2010

Date Format Gridview

DataFormatString
="{0:MM/dd/yyyy}"
 
Sample field...

<

asp:BoundField DataField="ETD" HeaderText="ETD"

SortExpression="ETD" ReadOnly="True" ItemStyle-Wrap="false" DataFormatString="{0:MM/dd/yyyy}"/>

No comments: