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

    QDate example in docs does not flag certain invalid dates as invalid

    Help
    qdate
    2
    2
    234
    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.
    • R
      rhscjohn last edited by

      ON the online Quasar Doc site, left side drawer, under Vue Components => Form Components => Date Picker => With QInput. The example input is 2019/02/01 which validates to true. The docs says the default modal format is YYYY/MM/DD.

      Try entering 2019/02/32 validates true. Incorrect February has at most 29 days
      try entering 2019/02/40 validates false. Correct.
      Try entering 2019/13/01 validates true. Incorrect. Only 12 months in a year
      Try entering 2019/21/01 validates false. Correct

      The Template shows :rules="[‘date’]". Is there a better built-in, internal rules validation that will do a better job of validating dates?

      Thanks

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

        @rhscjohn you can actually use your own function to validate whatever you want, I use my own for dates.

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