How to sort date as date and not string
How to sort date as date and not string
![CSMAtracker](https://secure.gravatar.com/avatar/3609c38dd595dc43615da5111d4f87b2/?default=https%3A%2F%2Fvanillicon.com%2F3609c38dd595dc43615da5111d4f87b2_200.png&rating=g&size=120)
in Editor
I've read the following threads in the forum but they are not working. I would like to sort my date as dates, they're currently getting sorted as string (treated as string) so 01-01-2022 comes before 10-01-2021 which we know is wrong. The following solutions suggested below were of no help.
https://datatables.net/forums/discussion/45692/how-to-date-sort-as-date-instead-of-string
https://datatables.net/forums/discussion/53146/format-datetime-in-the-editor-form
This discussion has been closed.
Answers
Use the solution presented in this date sorting blog.
Kevin