def _contains_date(format):
    """
    Check if a format contains tokens related to date.

    :param format:
    :type format: str
    :return: True if format contains tokens related to date, false otherwise.
    :rtype: boolean
    """
    part_of_date_tokens = "aAwdbBmyYjUW"
    for token in part_of_date_tokens:
        if token in format:
            return True
    return False