Set the limit the date range to 6 hours

Hi ,

let suppose i have selected start date and time , end date should have ahead of 6 hrs , in between user can select rest will be disabled , not getting how do i disable rest of time from date time picker in retool , pls let me know how do i handle this .

in js query
I have tried this way
return enddate = moment(startdate.value,'HH:mm:ss').add(6, 'hours').format('HH:mm:ss')

how do i restrict time from date picker , pls reply me

Hi @priyag597! If you write a moment add statement in the "Maximum date" field, it populates correctly, but it looks like it's just to specify the maximum date, and doesn't let you specify the maximum time unfortunately.