def dt2d(date):
    """
    Convert a datetime.datetime to datetime.date object
    """
return datetime.date(date.year, date.month, date.day)
Is there a consistent way to enumerate days/weeks/months between two dates?