How to validate date in laravel/formrequest

0

I have this type of date:

      "Date": "2024-09-06T06:58:19.326Z",

how should i validate it in my FormRequest in laravel?

I’ve tried this -

'required|date_format:Y-m-d\TH:i:s.u\Z'

and this -

date_format:Y-m-d

but i get 422 everytime.