src/coecms/cli/um.py
def validate_date(ctx, param, value):
    """
    Ensures an argument is a valid date
    """
    try:
        return pandas.to_datetime(value, utc=True, dayfirst=True)
    except ValueError:
        raise click.BadParameter(f'unable to parse "{value}" as a date')

    Ensures an argument is a valid date
    
Ensures an argument is a valid date
Ensures an argument is a valid date
def validate_date(ctx, param, value):
    try:
        return pandas.to_datetime(value, utc=True, dayfirst=True)
    except ValueError:
        raise click.BadParameter(f'unable to parse "{value}" as a date')
def validate_date ( ctx , param , value ) : try : return pandas . to_datetime ( value , utc = True , dayfirst = True ) except ValueError : raise click . BadParameter ( f'unable to parse "{value}" as a date' )
Ensures an argument is a valid date
Ensures an argument is a valid date
"""
    Ensures an argument is a valid date
    """
ctx
param
value