What's the best way to calculate the remaining months left on a countdown timer?
I'm using jquery to countdown to a date in the future that is over 12 months away, in fact far longer than 10 years away.
How would I show months from 0-12 based on how much time is left? So for example the timer could show x Years and 5 Months remaining resetting to 12 once it hits 0.
I'll be replacing the "weeks" with months, but I'm not sure how to calculate it.
weeks = Math.floor(left/60/60/24/7),