FilamentF
Filament13mo ago
ashfall

How to add hour and minute labels in English for Filament DateTimePicker?

I'm working with Filament's DateTimePicker component and I currently have this code:

Forms\Components\DateTimePicker::make('published_at')
->native(false)
->label('Ngày tháng năm sinh')
->seconds(false)

I want to add labels for hours and minutes in English, so instead of showing just "0 : 0" for the time picker, it would show something like "0 hours : 0 minutes" or "hr : min". What's the proper way to customize these labels in Filament?
image.png
Was this page helpful?