Assert that date is valid and corresponds to the given format.
public static date ( string $value, string $format, string | null $message = null, string | null $propertyPath = null ) : boolean | ||
$value | string | |
$format | string | supports all of the options date(), except for the following: N, w, W, t, L, o, B, a, A, g, h, I, O, P, Z, c, r. |
$message | string | null | |
$propertyPath | string | null | |
return | boolean |