Older version3.0 ValvesDateDateTimeValidatorValve

DateTimeValidatorValve

Validates that a datetime is within the given range.

Properties

Name Description Default value Mandatory Supports property expansion
value The value used for validation. Current time No Yes
not_before Not before value. Current time No Yes
not_after Not after value. Current timeĀ  No Yes

Example Configuration

{
    "name":"DateTimeValidatorValve",
    "config":{
	"value":"{{request.mydatetime}}",
	"not_before":"{{request.beforedatetime}}",
	"not_after":"{{request.afterdatetime}}"
    }
}

In the example above the values has been provided in the request.

Requirements

Expanded or static values must be in the "2014-12-03T10:15:30.00Zsyntax.