I have two date variables. Variable myDate1 has the following date: Sun Mar 30 00:00:00 GMT-0700 2008
Variable myDate2 has the following date: Sun Feb 24 00:00:00 GMT-0800 2008 I need to subtract date 2 from date 1 to get a number of days between: ((myDate1.getTime() - myDate2.getTime()) / 86400000); Usually, this give me a nice round number, like 35. However, in the example above, returns a number of 34.958333333333336...... I assume that I need to account for that 1 hour, the question is, how? It still needs to work regardless of whether or not the two dates cross a time change.

