def get_end_day(date):
    try:
        year, month, day = date.split("-")
    except ValueError:
        return None
    end = datetime.datetime(int(year), int(month), int(day))
    end = end + datetime.timedelta(1) - datetime.timedelta(microseconds=1)

    return end
Takes a string such as ``2009-07-23`` and returns a datetime object with
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/get_end_day