Hi Trent
The time that I need to implement the date sorting, in your last message you taold me the the ListViewColumnSorter class implements the sort for the LV.
I finally arrives there, and I believe that the routine to modifiy is this:
''' <summary>''' Compares two date values.''' </summary>''' <param name="x">The first value to compare.</param>''' <param name="y">The second value to compare.</param>''' <returns>An integer value indicating which value should be placed first.</returns>''' <remarks></remarks>Private Function CompareDates(ByVal x As DateTime, ByVal y As DateTime) As Integer'-- Compare the two rows being testedSelect Case _SortOrderCase SortOrder.AscendingReturn DateTime.Compare(x, y)Case SortOrder.DescendingReturn DateTime.Compare(y, x)Case SortOrder.NoneReturn 0End SelectEnd Function
But, I don't have any idea of what should I do with this, can you give me an idea of how or what should I do?
My date format is DD/MM/YYYY, in english is MM/DD/YYYY
I believe that I should format the date to the format I use, maybe something like this:
Return DateTime.Compare(CDate(Format(x, "d")), CDate(Format(y, "d")))
Hope you can point me in the right direction
Regards
Everything is possible, just keep trying...