Try something like this... HTH. A.
from datetime import * d1 = datetime( year=2006, month=5, day=15) d2 = datetime.now() for d in [d1,d2]: yest = d - timedelta(days =1 ) print "%s -> %s" % (d, yest) -- http://mail.python.org/mailman/listinfo/python-list