Some time we want that the dates should be shown in particular manner like "dd/mm/yyyyy" but we get stuck in what will be the formatting in Grid view
so for solving this type of problem we place a grid view in the asp.net web page and in the source codes i.e. HTML we have to insert this as a column To format a gridview column to display dates properly , two properties needs to be changed, the DateFormatString property and the HTML encode property. After setting the DateFormatString the HTMLEncode property should be set to false. For Example :
the above code will display the desired output
Enjoy
About the author:
Planet Source Code is a place for all developer providing free source codes, articles, complete projects,complete application in PHP, C/C++, Javascript, Visual Basic, Cobol, Pascal, ASP/VBScript, AJAX, SQL, Perl, Python, Ruby, Mobile Development- 15 views