I have a problem with weekday labels, I cannot find a way to change them to this format
(from M to Mon etc…)
my code :
<v-date-picker
:weekday-format="customWeekDays"
v-model="selectedDate"
show-adjacent-months
></v-date-picker>
and
const customWeekDays = computed(() => {
return ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
});
const selectedDate = ref<Date[] | undefined>(undefined);
const selectedDateDisplay = computed(() => {
if (selectedDate.value instanceof Date) {
return format(selectedDate.value, 'dd MMM yyyy');
}
return '';
});
I have tried this :weekday-format from (How to change day-format (M > Mo, F > Fr…) in Date/month pickers of Vuetify) prop but it doesnt seem to work for me
New contributor
Tomasz Malocha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.