You can use date_format to validate any date/datetime format you want
For example:
'date' => 'date_format:Y:m:d-H:i'
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have an app that i am working on that has a bunch of date-time date fields for which I need to come up with a good user experience for inputting the data via a form. Right now, I am leaning towards a separate date and time field in the form.
For the date input field, I am using bootstrap-datepicker.js. It seems the sister plugin for bootstrap-datepicker.js which is bootstrap-timepicker.js has been depreciated or abandoned.
Is there anything in Laravel or LiveWire that can help me mask and validate an input field for a 24-hour (military time) input field?
Or should I just use a traditional plugin? If so, do you have any suggestions for one that works well?
Please or to participate in this conversation.