In Asp.Net 2.0 direct datetime formatting for bound column not possible.
To format column into datatime you have to set HtmlEncode="False" property of BoundField.
The Reason behind for this is bydefault data is Html Encoded that prevents to format date.So, set HtmlEncode to False.
Google Search
Showing posts with label FormView. Show all posts
Showing posts with label FormView. Show all posts
Tuesday, January 22, 2008
DateTime Formatting in GridView,DetailView,FormView
Tags : DetailView, FormView, GridView, Tips -Tricks
Subscribe to:
Posts (Atom)