How long ?

Calculating the difference between days
since:  yyyy.mm.dd
        xxxx.mm.dd ( days since last time the date (mm.dd) occured)
until:  yyy.mm.dd
        xxx.mm.dd  ( days until next time the date (mm.dd) will occur)
between:yyyy.mm.dd yyyy.mm.dd
        yyyy.mm.dd xxxx.mm.dd ( days from from first date until next time the date (mm.dd) will occur)
        xxxx.mm.dd yyyy.mm.dd ( days since the date (mm.dd) occured, as seen from second date)
        xxxx.mm.dd xxxx.mm.dd ( days between dates in same year, this year is used. possibly a leapyear)

Returns a simple text which normally is a single integer, possibly negative
Returns ? if parameters does not make sence, or are in bad format

Click the samples, or write your command in the addressfield of the browser

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=until&date=2007-12-24

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=until&date=xxxx-12-24

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=since&date=xxxx-12-24

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=since&date=1946-12-27

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=between&date=xxxx-12-24&date2=xxxx-12-31

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=between&date=2007-12-24&date2=xxxx-12-01

http://www.it.hiof.no/~borres/cgi-bin/ajax/days/daydiff.py?diff=until&date=2007-07-21