F
Filament13mo ago
Hurruwa

Its possible to disable weekends on the DatePicker from filament?

I need to disable weekends on the date selector? Its there a goood way to do it? Thanks in advance.
1 Reply
bwurtz999
bwurtz99913mo ago
I haven't tried this, but my guess would be to use the ->disabledDates() option and return an array with weekend dates during your timeframe and/or you could use a custom validation rule to check if the selected date is a weekend and return an error if it is