On one of my webpage i am displaying datalist in which i am using this label:
<asp:Label ID="nameLabel12a" runat="server" Text='<%# Eval("CreatedOn") %>' />
This label is displaying created on date along with time (10/18/2010 2:45:07
PM), but i would like to display it something like this:
23 hours ago
10/3/2010 (if the time is more than 24 hours then it should display the date)
how to accomplish this ? please guide me...
View Complete Post