def check_date_arg(com_line_args, logger):
    """ Check --date argument function. """
    if com_line_args.date:
        logger.info('Checking date argument.')
        return True
    else:
        return False
