sort date

How to Sort Date in Listview Control

Submitted by admin on

As we know that we cannot sort the column in listview that contain a date value. There is however a work around in Microsoft Website on how to do this. This can be found at http://support.microsoft.com/kb/170884.

Although it will solve your problem but after testing it I found out that it cannot sort the date by descending order. Of course you can add another code to do it. But it will again add another line of code.