diff between two days, in hours
Posted
by Cristian Boariu
on Stack Overflow
See other posts from Stack Overflow
or by Cristian Boariu
Published on 2010-03-30T20:53:07Z
Indexed on
2010/03/30
21:03 UTC
Read the original article
Hit count: 263
c#
Hi, I do not uderstand why the result of:
(DateTime.Now.Subtract(user.created_time.Value.Date)).Hours
is 23.
where:
DateTime.Now is:{3/30/2010 12:00:00 AM}
and
user.created_time.Value.Date is : {3/24/2010 12:00:00 AM}
Does it make sense for anybody?
ps: I want to select all users created in last 72 hours so i suppose that is the way i should do...
© Stack Overflow or respective owner