Skip to content

DateTimeType

Requires the property’s value to be a parseable date/time.

Backed by Quiote\Validator\DateTimeValidator, which requires core.use_translation to be enabled — see that class’s docblock.

final class DateTimeType

Since1.0.0
SourceRequest/Attribute/Constraint/DateTimeType.php
PropertyTypeDescription
$message?``stringreadonly.

public function __construct(?string $message = null): mixed

ParameterTypeDescription
$message?``string

Returns mixed