Replace hard-coded year/month/date in DatePicker Vue component
MODIFY
resources/assets/js/components/DatePicker.vue
resources/assets/js/components/DatePicker.vue
export default {
data() {
return {
- year: 2017,
- month: 11,
- date: 4
+ year: new Date().getFullYear(),
+ month: new Date().getMonth(),
+ date: new Date().getDate()
}
},

Replace hard-coded year/month/date in DatePicker Vue component