Months between dates in C/C++ - forums.codeguru.com
https://forums.codeguru.com/showthread.php?493976-Months-between-dates-in-C-C
Mar 10, 2010 · Hi Everyone, I am trying to find the months between dates in C. I have calculated seconds between the two dates (using difftime). I can convert them into number of days as: No. of seconds/(24*60*60) however, to convert to number of months, how do I know whether to divide by 28, 29,30 or 31 ? Is there a better way to do this?
DA: 74 PA: 75 MOZ Rank: 36