J JezB May 18, 2005 #1 How do I calculate the number of days (or hours, or minutes, etc) between two DateTime's ?
R Ravi Ambros Wallau May 18, 2005 #2 Subtract one from the other. The result of this operation is a TimeSpan object (operator - (less) is overloaded)...
Subtract one from the other. The result of this operation is a TimeSpan object (operator - (less) is overloaded)...
G Guest May 18, 2005 #3 DateTime1 - DateTime2 results in a TimeSpan structure. This structure allows you the represent the timespan in hour, seconds, ticks days. etc
DateTime1 - DateTime2 results in a TimeSpan structure. This structure allows you the represent the timespan in hour, seconds, ticks days. etc