Trying to validate two datefields with Pikday datepicker.
Pikaday format is: format: 'D MMM YYYY'
When I dd the input request I get this: "22 okt. 2021" (norwegian locale)
Then:
$request->validate([
'pickup_date' => 'required|date_format:d M. Y',
'delivery_date' => 'required|date_format:d M. Y',
]);
Gives me this:
"The pickup date does not match the format d M. Y."
Is there something about that period after the Y? If so, why is it even there?
Does someone has an explanation why this is happending? Thanks.