FilamentF
Filament16mo ago
Nobody

How to set the DateTimePicker in the minutes section

how do I set the DateTimePicker in the minutes section to only display 30 or 00? so that in the minutes section you can only select the 30th minute or the 0th minute and no other minutes?
this is my DateTimePicker code

DateTimePicker::make('pickupBefore') ->required() ->seconds(false) ->minDate(now()->toDateTimeLocalString(unitPrecision: 'minute')) ->label('Pickup Before'),
image.png
Was this page helpful?