How To Set a Date Format In GridView Using ASP.NET 2.0
A very common desire is to set a column of a gridview to display just the month, day and year of a DateTime type.The problem is the by default, the HtmlEncode property of the boundfield attribute is set to True
DataFormatString=“{0:M-dd-yyyy}”
>
>
The second choice is to make the column a template and simply set the format string directly in the Label ,Text Fields or bind data direct as follows.
>
>
Please explain in more details
Thanks….!
[Reply]