© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago
Zlatiborac

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?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Default date format
FilamentFFilament / ❓┊help
5mo ago
ExportColumn date format
FilamentFFilament / ❓┊help
2y ago
TextInputColumn Date Format
FilamentFFilament / ❓┊help
3y ago
Datepicker date format
FilamentFFilament / ❓┊help
3y ago