mercredi 21 mars 2018

Validate datetime-local input

According to MDN, I should use datetime-local type for a date and a time input:

<input type="datetime-local">

I can validate a date in laravel with this code (in a controller):

$this->validate($request, ['my_date' => 'required|date']);

But is there a way to validate a datetime-local?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire