aws_lambda_decorators/validators.py
def validate(self, value=None):
        """
        Check if a string is a date with a given format

        Args:
            value (str): string date to validate against a format
        """
        if value is None:
            return True

        try:
            datetime.datetime.strptime(value, self._condition)
        except ValueError:
            return False
        else:
            return True

        Check if a string is a date with a given format

        Args:
            value (str): string date to validate against a format
        
Check if a string is a date with a given format
Check if a string is a date with a given format
def validate(self, value=None):
        if value is None:
            return True
        try:
            datetime.datetime.strptime(value, self._condition)
        except ValueError:
            return False
        else:
            return True
def validate ( self , value = None ) : if value is None : return True try : datetime . datetime . strptime ( value , self . _condition ) except ValueError : return False else : return True
Check if a string is a date with a given format
Check if a string is a date with a given format
"""
        Check if a string is a date with a given format

        Args:
            value (str): string date to validate against a format
        """
self
value
string date to validate against a format
string date to validate against a format