G
gh
I am trying to format a datetime in a datalist label. Below is the aspx
code I have, but I get an error: The name 'Format' does not exist in the
current context.
How do I format the datetime to display the date portion only in the label.
TIA
<asp:Label id="ProjectDateLabel" runat="server"
text='<%#Format(Eval("ProjectDate"),"d/M/yyyy")%>'></asp:Label>Address:
code I have, but I get an error: The name 'Format' does not exist in the
current context.
How do I format the datetime to display the date portion only in the label.
TIA
<asp:Label id="ProjectDateLabel" runat="server"
text='<%#Format(Eval("ProjectDate"),"d/M/yyyy")%>'></asp:Label>Address: