Following code explain How to format date in ASP.Net Gride view
< asp :GridView ID=“GridView1″ runat=“server” >
< columns >
< asp :BoundField DataField=“CreationDate”
DataFormatString=“{0:dd-MM-yyyy}”
HtmlEncode=“false”
HeaderText=“CreationDate” />
< /columns >
< /asp >
No comments:
Post a Comment