def is_date(thing):
<EOL>date_types = (datetime.datetime,<EOL>datetime.date,<EOL>DateTime)<EOL>return isinstance(thing, date_types)<EOL>
Checks if the given thing represents a date

    :param thing: The object to check if it is a date
    :type thing: arbitrary object
    :returns: True if we have a date object
    :rtype: bool