Thanks for replying, the source came from a sql serve, and the field type is
DateTime...
Thanks
> Hi Paulo,
> what source of data are you using for your grid view? Is it a database? If
[quoted text clipped - 9 lines]
>> Can you help me ?
>> C# 2.0 VS 2005 asp.net
Ladislav Mrnka - 15 Aug 2007 16:20 GMT
Hi Paulo,
you can use this workaround:
<asp:TemplateField HeaderText="Date">
<ItemTemplate>
<asp:Label runat="server" ID="myDate" Text='<%#
((DateTime)Eval("Last_Update")).ToString("dd/MM/yyyy") %>' />
</ItemTemplate>
</asp:TemplateField>
I am using all fields except TemplateField very rarely.
Regards,
Ladislav
> Thanks for replying, the source came from a sql serve, and the field type is
> DateTime...
[quoted text clipped - 14 lines]
> >> Can you help me ?
> >> C# 2.0 VS 2005 asp.net
Ladislav Mrnka - 15 Aug 2007 16:32 GMT
Hi again Paulo,
I tryed it at my own and I found a trick :) Set HtmlEncode="false" for your
BoundField.
Regards,
Ladislav
> Thanks for replying, the source came from a sql serve, and the field type is
> DateTime...
[quoted text clipped - 14 lines]
> >> Can you help me ?
> >> C# 2.0 VS 2005 asp.net