Monday, November 15, 2010
Set Date Format In Label Witth Data Binding
where date is a database field
We can also set it as
<asp:Label ID="Label1" runat="server" Text='<%= String.Format("{specifier}", DateTime.Now)%'></asp:Label>
Text='<%# Eval("date","{0:M}"<asp:Label ID="Label1" runat="server" Text='<%# Eval("date","{0:M}")%>'></asp:Label>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment