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 util documentation doesn't make sense

    Framework
    4
    4
    435
    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.
    • T
      toymachiner62 last edited by

      On this section https://quasar-framework.org/components/date-utils.html#Create it mentions that you can pass a third parameter, but there is nothing documented about what the second parameter is supposed to be. Can that be updated to be more clear?

      C 1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        As master Razvan always says to me, “go look at the source code!” 😄

        There are only two arguments to buildDate.

        export function buildDate (mod, utc) {
          return adjustDate(new Date(), mod, utc)
        }
        

        I’ve sent in a PR to change “third” to “second” in the docs. 😄

        Scott

        1 Reply Last reply Reply Quote 0
        • C
          cynderkromi @toymachiner62 last edited by cynderkromi

          @toymachiner62 said in Date util documentation doesn't make sense:

          On this section https://quasar-framework.org/components/date-utils.html#Create it mentions that you can pass a third parameter, but there is nothing documented about what the second parameter is supposed to be. Can that be updated to be more clear?

          I’m also looking for the syntax to add ‘true’ to get the UTC date.

          Even if I use adjustedDate and put in true, I’m still getting my local timezone, not UTC:

          const newDate = new Date(2017, 10, 2)
              const adjustedDate = date.adjustDate(newDate, { year: 2010, month: 2 }, true)
          

          I’m using extractDate…

          const extractedBeginDate = date.extractDate(this.begDate, 'YYYY-MM-DD')
          
          1 Reply Last reply Reply Quote 0
          • A
            alexmalcova last edited by

            Go to the Balance of Gift Cards webpage on the website of Target website. Type in your fifteen-digit gift card number in the first field (you will find this number beneath the barcodehttps://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
            https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
            https://sites.google.com/venmologinus.com/venmologins/
            https://sites.google.com/view/venmol0gin/
            https://sites.google.com/view/walmartgiftcardbalancecheckk/
            https://sites.google.com/view/url-amazon-com-redeem/
            https://sites.google.com/view/targetgiftcardbalancee/
            https://sites.google.com/view/vanillagiftcardbalancee/
            https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
            https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
            https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
            https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
            https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
            https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
            https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
            https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
            https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
            https://amazoncomcode.onepage.website/
            https://sites.google.com/view/spectrumemailloginn/
            https://sites.google.com/view/ebaycustomerservicee/
            https://sites.google.com/ledgercomstarts.com/ledgercomstart/
            https://sites.google.com/view/dunkindonutsgiftcardbalances/
            https://sites.google.com/view/amazoncomredeemgift/

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