Level 51
You can try with rule date_format
https://laravel.com/docs/5.4/validation#rule-date-format
date_format:"Y-m-dH:i"
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How do you validate a date which comes from <input type="datetime-local">?
example
2017-05-12T06:00
You can try with rule date_format
https://laravel.com/docs/5.4/validation#rule-date-format
date_format:"Y-m-dH:i"
Please or to participate in this conversation.