[Vuejs]-How can I disable selecting a particular date in a VCalendar Date Picker?

0πŸ‘

βœ…

To disable minute selection, you can add a rule to fix them to 0. See the documentation.

<template>
  <VDatePicker v-model="date" mode="dateTime" :rules="rules" />
</template>

<script setup>
import { ref } from 'vue';

const date = ref(new Date(2000, 0, 15));
const rules = {
  minutes: 0,
  seconds: 0,
  milliseconds: 0,
};
</script>

Leave a comment