DateTimeValidator
DateTimeValidator
Section titled “DateTimeValidator”use Fynix\Rule;
$validator = Rule::dateTime('startsAt')->format('Y-m-d H:i:s');$error = $validator->validateField('2026-09-11 09:30:00');Without format(), Fynix uses PHP date parsing. With a format, the formatted value must exactly match the input. Existing DateTimeInterface instances are accepted.