Show Date without time

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top