Hi,
you can use format string with Eval
<asp:Label id="ProjectDateLabel" runat="server" text='<%#
Eval("ProjectDate","{0:mm/dd/yyyy}") %>'>
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"gh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Below is the code from an aspx file for the datalist
>
> <ItemTemplate>
> <p>Company:
> <asp:Label id="UserFieldLabel" runat="server" width="450px" text='<%#
> Eval("UserField") %>'></asp:Label> Project:
> <asp:Label id="PrjNameLabel" runat="server" width="253px" text='<%#
> Eval("PrjName") %>'></asp:Label> Project Date:
> <asp:Label id="ProjectDateLabel" runat="server" text='<%#
> Eval("ProjectDate") %>'></asp:Label>Address:
>
>
> Where do I put the format code to have project date display as mm/dd/yyyy?
> Is {d: mm/dd/yyyy} the correct code for this?
>
> TIA