From: roberta on
I've a grid view with a column that shows a DateTime value

<asp:TemplateField HeaderText="Data">
<ItemTemplate>
<asp:Label ID="lblData" runat="server" Text='<%#
Eval("Data") %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="70px"></ItemStyle>
</asp:TemplateField>

I would like to show only date (not time) but using templatefield and
not BoundField solution

Thanks
From: Mark Rae [MVP] on
"roberta" <roby(a)tis.it> wrote in message
news:OqVwt5D8KHA.1888(a)TK2MSFTNGP05.phx.gbl...

> I would like to show only date (not time) but using templatefield and not
> BoundField solution

http://www.codedigest.com/Articles/ASPNET/137_How_to_format_DateTime_in_GridView_BoundColumn_and_TemplateColumn.aspx


--
Mark Rae
ASP.NET MVP
http://www.markrae.net