I need to show a countdown, I calculated the difference between dates in milliseconds, how can I convert this to a countdown, i.e. "20 days 12 hours 12 minutes left"? I can get the remaining hours.
(mili / 24 * 60 * 60 * 1000)
But this is the total number of hours remaining, how can I convert this to 0-24 hrs 0-60 min format?
source share