2011-11-30, 06:59 AM
C has a function, mktime(), for converting from a struct with year/month/day/hour/minute/second fields to a single long int (seconds since the epoch).
Use that to convert both dates, subtract the ints, divide by seconds in a day.
Use that to convert both dates, subtract the ints, divide by seconds in a day.

