universal date/time formatting

How come every page that has a date/time on it i have to keep telling my developers to fix the formatting to something proper such as MM/DD/YYYY 7:38 AM ? They told me there is no universal setting. Can someone build that to the core filament?
4 Replies
toeknee
toeknee5w ago
It's built in already. Where is it you want to change it FYI that isn't proper if your in the UK 😛
Sam Pizzo
Sam PizzoOP5w ago
where in filament is universal date/time format?
toeknee
toeknee5w ago
It's defined per package so you need it added to the boot service provider
toeknee
toeknee5w ago
One for forms and tables so So if it's the datetime picker:
DatePicker::configureUsing(fn () => DatePicker::$defaultDateDisplayFormat = __('format.date'));
DateTimePicker::configureUsing(fn () => DateTimePicker::$defaultDateTimeDisplayFormat = __('format.dateTime'));
DatePicker::configureUsing(fn () => DatePicker::$defaultDateDisplayFormat = __('format.date'));
DateTimePicker::configureUsing(fn () => DateTimePicker::$defaultDateTimeDisplayFormat = __('format.dateTime'));
see: https://github.com/filamentphp/filament/discussions/7699
GitHub
Default date format for v3 · filamentphp filament · Discussion #7699
Hello, I'm unable to find this. In v2 you can define a default date format for forms and tables, but I'm unable to find that for v3. Is this still possible?
Want results from more Discord servers?
Add your server