- #1
StupidHead
- 19
- 0
This is for writing a program btw. The dates in the program are represented by the number of days passed since 12/30/1899.
Ok, let's say today is 02-Feb-2005 and there is an event that occurs on 01-May-2008. Now by subtracting the day of the event from today's date, I know the number of days remaining till the day of the event is 1184 (including the leap year) but how do I represent this in Years, Months, Days till the event?
Is there any algorithym that I can use in my program to calc how many years, months, and days until the event occurs? It's a countdown timer sort of like what you'd see like a countdown to the next millenium etc.
Thanks in Advance,
Jen
Ok, let's say today is 02-Feb-2005 and there is an event that occurs on 01-May-2008. Now by subtracting the day of the event from today's date, I know the number of days remaining till the day of the event is 1184 (including the leap year) but how do I represent this in Years, Months, Days till the event?
Is there any algorithym that I can use in my program to calc how many years, months, and days until the event occurs? It's a countdown timer sort of like what you'd see like a countdown to the next millenium etc.
Thanks in Advance,
Jen