Datepicker disable weekends

Hi, has anyone been able to disable only weekends on the Datepicker component?
1 Reply
Mikazor
Mikazor17mo ago
There are an option https://filamentphp.com/docs/3.x/forms/fields/date-time-picker#disabling-specific-dates
use Filament\Forms\Components\DateTimePicker;

DateTimePicker::make('date')
->native(false)
->disabledDates(['2000-01-03', '2000-01-15', '2000-01-20'])
use Filament\Forms\Components\DateTimePicker;

DateTimePicker::make('date')
->native(false)
->disabledDates(['2000-01-03', '2000-01-15', '2000-01-20'])

Did you find this page helpful?