Time min value

I have two date pickers
The first for the outward journey, and the second for the return journey
The first has today’s date as its minimum date and the second has the date chosen in the first as its minimum date.
So far everything is ok

However, I also have two drop-down selects that list the time HH: mm values entered in the database
The first select with the values (text) relating to the outward journey
The second selevt with the values (text) related to the return

What I would like to do is:
1- limit the time list by disabling those that have already been exceeded by the current time
2- limit the time list by disabling those prior to or equal to the last time in the first select

I hope I have explained well
It is possible to realize these limitations, taking into account that even if the times have been entered in Time HH: mm format, in the select they are text values

You could try enabling time selection in your datepicker and avoid using a separate time selection UI.

In case it does not fit your use case, setting allowed time will be complicated in a sense that restrictions are needed only when start and end dates are same.

You could use a time input instead of a select to get around the time and text type mismatch.

I thank you
Unfortunately I am forced to use a select for the times, because the list of available times is determined in the database and varies from record to record, so each record has different times