Hi,
I am using an MS SQL Database with a table that has a DateTime column stored in it.
When I try to bind the data inside this table to a GridView and/or DataList the date shows up as (for example) '2010-03-03T00:00:00+01: 00'.
In my GridView I tried to format that datetime by using the following 'BoundField' tag;
<asp:BoundFie ld DataField="News DateEntered" HeaderText="Dat e Entered" DataFormatStrin g = "{0:dd/MM/yyyy}" HtmlEncode="Fal se" />
This is still wielding no results and I have tried to recreate the table and so on. Does anyone have any idea what my problem could be please?
Thanks
I am using an MS SQL Database with a table that has a DateTime column stored in it.
When I try to bind the data inside this table to a GridView and/or DataList the date shows up as (for example) '2010-03-03T00:00:00+01: 00'.
In my GridView I tried to format that datetime by using the following 'BoundField' tag;
<asp:BoundFie ld DataField="News DateEntered" HeaderText="Dat e Entered" DataFormatStrin g = "{0:dd/MM/yyyy}" HtmlEncode="Fal se" />
This is still wielding no results and I have tried to recreate the table and so on. Does anyone have any idea what my problem could be please?
Thanks
Comment