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

    How to sort mysql timestamp ?

    Help
    2
    2
    50
    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
      mecjos last edited by

      Hi. How to sort mysql timestamp string (“2021-02-17 16:14:08”) in quasar.

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @mecjos last edited by

        @mecjos

        You have to convert the String to a valid JS date.

        You can use date-fns for that:
        https://date-fns.org/

        Here’s a thread how to use it in Vue:
        https://stackoverflow.com/questions/49562095/how-to-use-date-fns-in-vuejs

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