diff --git a/src/components/DatePicker.vue b/src/components/DatePicker.vue index a906023..1821a2f 100755 --- a/src/components/DatePicker.vue +++ b/src/components/DatePicker.vue @@ -3,7 +3,9 @@ import { PhCalendarBlank } from '@phosphor-icons/vue' import { ref, watch } from 'vue' import VueTailwindDatepicker from 'vue-tailwind-datepicker' -const dateValue = ref('') +const dateValue = ref( + `${new Date().getDay().toString().length == 1 ? `0${new Date().getDay()}` : new Date().getDay()}-${new Date().getMonth().toString().length == 1 ? `0${new Date().getMonth()}` : new Date().getMonth()}-${new Date().getFullYear()} s/d ${new Date().getDay().toString().length == 1 ? `0${new Date().getDay()}` : new Date().getDay()}-${new Date().getMonth().toString().length == 1 ? `0${new Date().getMonth()}` : new Date().getMonth()}-${new Date().getFullYear()}` +) const formatter = ref({ date: 'DD-MM-YYYY', month: 'MMMM' @@ -36,12 +38,22 @@ watch(dateValue, (newValue) => {