def date_validator(optdict, name, value):
 return optik_ext.check_date(None, name, value)

def date_validator ( optdict , name , value ) : return optik_ext . check_date ( None , name , value )
validate and return a mx datetime object for option of type date .