My project requires that I add the time element also to the calculations. Therefore, it is not a simple subtraction between two dates. Here is a simple example for illustration:
Previous date=12/27/2011 , Previous time=4:35:16 PM
Current date from device=12/31/2011 , Current time from device=9:15:12 AM.
The difference between the two dates is not 4 days. It is around 3.69 days. I have tried to add Timeparse into the mix, but it did not yield correct results. I run my code at different times of the day, the days between the 2 dates change of course and you expect them to, because the current time and date change, but the answer is not mathematically correct.
I hope this simple example can explain my situation better.
Thank you