How to sort mysql timestamp ?
-
Hi. How to sort mysql timestamp string (“2021-02-17 16:14:08”) in quasar.
-
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