#How to set the DateTimePicker in the minutes section

8 messages · Page 1 of 1 (latest)

exotic walrus
#

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'),`
minor vineBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

exotic walrus
#

already can it turns out to have to add ->native (false).
but can the display be made like before giving ->native (false)?

eternal glacier
#

->native(false)

#

the before display is given by the browser

#

native means browser native calendar picker