Show Date without time

  • Thread starter Thread starter roberta
  • Start date Start date
R

roberta

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
 
Back
Top