I’m using v-calendar datepicker 3.0
with configuration:
<DatePicker v-model="date" :mode="mode" :locale="locale" is24hr :model-config="modelConfig" @dayclick="pickDate" @input="pickDate" ref="calendar" @daykeydown="onKeydown" :popover="popoverOptions">
When in DateTime mode is seleced date , hour is automatically added according local time, example 11:00. Is there possible to configure that it is by default 00:00 ?
Please read the documentation… Here is an example:
<template>
<VDatePicker v-model="date" :rules="rules" />
</template>
<script setup>
import { ref } from 'vue';
const date = ref(new Date());
const rules = ref({
hours: 0,
minutes: 0,
seconds: 0,
milliseconds: 0,
});
</script>