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

    Q-Date-range issue

    Help
    2
    3
    206
    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.
    • M
      mordvash last edited by

      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!

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @mordvash last edited by

        @mordvash change the format to YYYY/MM/DD.

        M 1 Reply Last reply Reply Quote 1
        • M
          mordvash @metalsadman last edited by

          @metalsadman You are geniues! , thank you

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