Does the date_format
validation rule support ISO weeks?
#51357
Unanswered
jameswilddev
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Y-W is the format you are seeking. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs state: https://laravel.com/docs/11.x/validation#rule-date-format
Formats in question: https://www.php.net/manual/en/datetime.format.php
These are my rules:
Here's my request (sans cookies, referrer, host, etc.):
And the corresponding response:
But PHP generates this exact string for the current date:
Is this unsupported functionality (i.e. the docs are wrong) or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions