def get_start_day(date):
    """Takes a string such as ``2009-07-23`` and returns datetime object of
    this day.
    """
    try:
        year, month, day = date.split("-")
        start = datetime.datetime(int(year), int(month), int(day))
    except __HOLE__:
        return None
    return start
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/get_start_day