I want to be able to calculate the number of days between 2 dates. Ive looked at the boost c++ libararies but it isnt possible for me me to use them as I have to take my code between multiple computers.

Ive searched the forum and it returns this post:

http://cboard.cprogramming.com/showt...ber+days+dates

which talks about using difftime(); but I dont understand how that can work as Im trying to find days between dates not seconds between times

Any ideas?