DatePicker Month-Year Display Only

Is it possible to select only month and year in date picker? I can make it save in month-year but want to display that in Month-Year too. Don't need Days.
3 Replies
Sanchit Patil
Sanchit Patil16mo ago
Filament
Flatpickr by Sam Maosa - Filament
Use Flatpickr as your datepicker in the Filament Forms and Panels
Arrow
Arrow10mo ago
Kind of old post! But yes, it's possible with native datepicker using the
extraInputAttributes(['type' => 'month'])
extraInputAttributes(['type' => 'month'])
DatePicker::make('startDate')
->native()
->extraInputAttributes(['type' => 'month'])
DatePicker::make('startDate')
->native()
->extraInputAttributes(['type' => 'month'])
No description
KeyMe
KeyMe10mo ago
tried doing this, defining as form filter works fine, but somehow if used in action modal, the filter value returns last day of the previous month instead
Want results from more Discord servers?
Add your server