|
algorithm: help needed in difference of dates
lets say i have the date as year, month and day in three variables:-
y1, m1 and d1
and another date in:-
y2, m2 and d2
is there any good algorithm to find the difference in the number of days between these two dates.
i would be thankful if anyone can provide me a link to any such alogrithm or post a description here.
example data:-
14th June 1983: y1=1983, m1=06, d1=14
15th April 2006: y2=2006, m2=04, d2=15
|