• Checks if the given value is a Date object in the past.

    Beware that the behaviour of this check depends on the current time and can thus be difficult to test.

    Example

    // Ensure the value is in the past.
    @PastDate()
    created: Date

    Parameters

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator