I have two dates and I’m wondering how to check if their difference is at least 2 months or greater.
Currently I’m converting both dates to seconds since Jan 1900 and then checking the difference in seconds and comparing it to the # of seconds in a month. Does C have a better built in function that gives timespans?
My date format: MM/DD/YYYY
C has difftime which basically does what you are doing. There are many more powerfully date libraries you can use.