Date/time picker and minimum hour property

Hi Bubblers,

I have a Start Date/Time Picker and an End Date/Time Picker. I want to prevent the user from picking an end time that is =< start time.

I’ve tried manipulating the End Date/Time Picker Minimum Hour Property but it doesn’t work.

Is the Minimum Hour Property in the Element Editor the easiest/best way to achieve this objective or is there a easier/better way using Workflows?

Any help would be appreciated.

Converted to number is not generating the number you are expecting.

It should work like this:
image

Thanks for your input.

Yes, I’ve tried your suggestion: “Date/Time Picker Start’s value:extract hour”. However, it doesn’t resolve the fact that the Start Time can equal End Time which isn’t achieving my objective. I want to have the End Time to be at least 30 minutes > Start Time. I’ve tried a variant of your suggestion: “Date/Time Picker Start’s value +(hours):0.5: extract hour” with mixed results. When the start time is at the top of the hour (i.e. 17:00 or 18:00), the end time is also the same value (i.e. 17:00 or 18:00). It’s only when the start time is at the bottom of the hour (i.e. 17:30 or 18:30), the end time adds 0.5 hours (i.e. 18:00 or 19:00). Not sure why Bubble does this,

did you set the minimum value also to start time + 30 minutes?

Yes sir.

Screenshot 2023-03-05 6.07.37 PM

The wierd thing is that if the start time at the top of the hour (i.e. 18:00), the finish time = start time (i.e. 18:00).

However, if the start time is at the bottom of the hour (i.e. 18:30), the finish time = 19:00.

I can’t figure it out. There’s no rhyme or rythem.

what I mean is that you need to set also the minimum date to start + 30 minutes.
In your screenshot is set only to start

Unfortunately, it didn’t seem to make a difference…

Screenshot 2023-03-06 145601

vs.

Screenshot 2023-03-06 145708

Right.
An alternative approach can be to leave empty the minimum hour, assign start + 30 min as the initial value, put the end input in a group, add a workflow on input change and reset the container group if the date is not more than start + 30 min.
This way the user can select a earlier date but it will autocorrect.
firefox_9abuNdklmB