def make_date(dt, date_parser=parse_date):
if not dt:<EOL><INDENT>return datetime.date(<NUM_LIT>, <NUM_LIT:1>, <NUM_LIT:1>)<EOL><DEDENT>if isinstance(dt, basestring):<EOL><INDENT>dt = date_parser(dt)<EOL><DEDENT>try:<EOL><INDENT>dt = dt.timetuple()[:<NUM_LIT:3>]<EOL><DEDENT>except AttributeError:<EOL><INDENT>dt = tuple(dt)[:<NUM_LIT:3>]<EOL><DEDENT>return datetime.date(*dt)<EOL>
Coerce a datetime or string into datetime.date object

    Arguments:
      dt (str or datetime.datetime or atetime.time or numpy.Timestamp): time or date
        to be coerced into a `datetime.date` object

    Returns:
      datetime.time: Time of day portion of a `datetime` string or object

    >>> make_date('')
    datetime.date(1970, 1, 1)
    >>> make_date(None)
    datetime.date(1970, 1, 1)
    >>> make_date("11:59 PM") == datetime.date.today()
    True
    >>> make_date(datetime.datetime(1999, 12, 31, 23, 59, 59))
    datetime.date(1999, 12, 31)