G
Guest
I can't figure out how to format a Label containing a datetime value in a
GridView .
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="JoinDate" runat="server" Text='<%# Eval("JoinDate")
%>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
I use DataTextFormatString="{0:MMM yyyy}" in a DropDownList but this won't
work with the Label.
Thanks for any suggestions.
GridView .
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="JoinDate" runat="server" Text='<%# Eval("JoinDate")
%>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
I use DataTextFormatString="{0:MMM yyyy}" in a DropDownList but this won't
work with the Label.
Thanks for any suggestions.