Date Sort not working Correctly

Date Sort not working Correctly

mountainclimbermountainclimber Posts: 2Questions: 0Answers: 0

One easy way to solve this problem is to convert the format of the date in your SQL recordset to yyyy/MM/dd

SELECT convert(varchar, whatever_date, 111) as whatever_date

This will return date in yyyy/MM/dd format and that will cause datatables to sort the date column correctly

Replies

Sign In or Register to comment.