View Single Post
Old Jun 6th, 2006, 5:38 AM   #1
smith.norton
Newbie
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0 smith.norton is on a distinguished road
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
smith.norton is offline   Reply With Quote