Date Utils imports
-
I am trying to work in a pen using the cdn https://cdn.jsdelivr.net/npm/quasar@1.14.7/dist/quasar.umd.min.js. This allows me to use all the quasar components, but i am missing the way to acces to utils like date. I usually do this
import {date} from 'quasar'
but I need to know how to use the Date Utils in here
new Vue({ el: '#q-app', data () { return { days: [], }, methods: { dateWork () { let dateString = new Date() return date.isValid(dateString) } } )}
-
@codethirsty I have never used the cdn version, but see here: https://quasar.dev/start/umd#Quasar-Utils
You should be able to use it like
Quasar.utils.date.isValid(dateString)
with no need to import anything. -
@beets Thanks beets, you save me once again