No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Date Utils imports

    Framework
    2
    3
    336
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      codethirsty last edited by

      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)
              }
        }
      )}
      
      beets 1 Reply Last reply Reply Quote 0
      • beets
        beets @codethirsty last edited by beets

        @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.

        1 Reply Last reply Reply Quote 1
        • C
          codethirsty last edited by

          @beets Thanks beets, you save me once again

          1 Reply Last reply Reply Quote 0
          • First post
            Last post