PDA

View Full Version : Finding No Of Days


cbeganesh
11-05-2004, 03:04 PM
Hello

I need to find the number of days between 2 given dates
example , 20041023 and 20041105

Any idea would be appreciated

Thanks

itsme86
11-05-2004, 03:17 PM
Check out the mktime() function. mktime() will let you end up with 2 time_t values. Subtract one from the other and you have the difference in seconds.

cbeganesh
11-05-2004, 03:20 PM
Ok I will check it out
Thanks