QDate disable past dates
-
Hi, just want to know if I can disable past dates on QDate Options? TIA
-
@DranrebTheGreat yep https://quasar.dev/vue-components/date#Limiting-options.
optionsFn(d) { return d >= date.formatDate(Date.now(), 'YYYY/MM/DD') }
-
@metalsadman thank you so much for the quick response. But error appears on the console log stating that date.FormatDate is not a function. Just want to disable the days after the current date.
-
@DranrebTheGreat import it
import { date } from 'quasar'
. https://quasar.dev/quasar-utils/date-utils#Format-for-display -
@metalsadman works like a charm. thank you so much for the help !