Rahul Lakshakar

Rahul Lakshakar

  • NA
  • 199
  • 41.9k

Show date time using expression language in label

Jun 27 2017 4:06 AM
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)