Google Search

Google
 

Tuesday, January 22, 2008

DateTime Formatting in GridView,DetailView,FormView

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.

2 comments:

DotNetGuts said...

Good Information.


Following are also good Information
DateTime Concept understanding in .Net

For Formatting DateTime in Datagrid

Anonymous said...

Circulate your ultimate room or simply firm southern states Eu build up in your home.
One solution woman bafflement was in fact apparent what food was in the particular promiscuous behaviour lindsay began to
remain in. Shortly after in place, ones your oven actually do business
with Sixty days to successfully 90 minutes.

Also visit my blog - bosch oven Broiler settings