I am utilizing v-calendar to display the start date and time as well as end date and time in dateTime mode. My goal is to prevent the end date and time from being set before the start date and time. In order to achieve this, I have implemented the :min-date prop bound with the value of the start date and time, as shown in the code snippet below.
<v-date-picker :min-date="this.formData.startDate" v-model="formData['endDate']" mode="dateTime" :timezone="timezone" name="End Date" class="dateTimePicker">
<template v-slot="{ inputValue, inputEvents }">
<input
class="px-2 py-1 border rounded focus:outline-none focus:border-blue-300"
:value="inputValue"
v-on="inputEvents"
/>
</template>
</v-date-picker>
For instance, if the selected start date and time is Feb 10th, 05:00 AM, any dates prior to the 10th will be disabled when selecting the end date and time. However, even if I select the 10th as the date (same date), I am still able to choose 04:00 AM as the time, which is not desired.
Is there a way to disable times based on the selected date?