How to sort date as date and not string

How to sort date as date and not string

CSMAtrackerCSMAtracker Posts: 9Questions: 4Answers: 0

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

Answers

Sign In or Register to comment.