Input

Valid Two Dates

Rule `valid_two_dates`: Validates pair of date values.

Usage

Use for date range fields.

$schema = \Lemonade\Framework\Validation\ValidationSchema::create()
    ->field('field', 'Field')
        ->twoDates('2026-01-01', '2026-12-31')
        ->end();

$result = $validator->validate($payload, $schema);

Stable rule name

valid_two_dates for translations, registry lookup and per-rule messages.

Group

Date / Time / Money