Display date format

I am trying to format datePicker field using
DatePicker::make('date_of_birth')
->displayFormat('d.m.Y.')
->required(),
DatePicker::make('date_of_birth')
->displayFormat('d.m.Y.')
->required(),
but I am still getting the mm/dd/YYYY format in the form field. I tried changing or adding some settings in config/filament.php file but still no successs. Only way I was able to resolve this was by using ->native(false)
DatePicker::make('date_of_birth')
->displayFormat('d.m.Y.')
->native(false)
->required(),
DatePicker::make('date_of_birth')
->displayFormat('d.m.Y.')
->native(false)
->required(),
but then I am loosing the datepicker icon in the input field. Is there any way to resolve this? Is it some setting deeper down, like maybe php settings?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server