I've got a datetime and I want to check if there is 24 hours difference between those two. I just don't know how to do that.
So far I've got this:
<%# (DateTime.Now - Convert.ToDateTime(Eval("new_date"))) < 24 ? "Today" : Eval("new_date") %>
The difference between 2
DateTimes is a
TimeSpan, which has a
TotalDays property you could compare to