Q-Date-range issue
-
hi guys
I’m using q-date-range and i want his options to be current and beyond.
The problem is that he gives me options from 01.01.2021 and beyond and not from the current day
here is my code:
<q-date
v-model=“rangeDate”
range
:subtitle="$t(‘pickDate’)"
:options=“options”
/>options(dateRange) {
let timeStamp = Date.now()
return dateRange >= date.formatDate(timeStamp, ‘YYYY-MM-DD’)
},
Thanks! -
@mordvash change the format to
YYYY/MM/DD
. -
@metalsadman You are geniues! , thank you