3
Answers

Show date time using expression language in label

I am trying to show date time on webpage using this code but it's not working. Can any one suggest why?
 
<asp:Label ID="Label1" runat="server" Text='<%# Eval("Date", "{0:d MMM yyyy HH:mm}") %>'></asp:Label>
 
Answers (3)