Posted on 2003-10-30
i have a peculiar problem while sorting date using COleDateTime in quick sort.
i have 2 dates
strL = "01/06/2000 00:43PM"
strR = "09/05/2000 10:47AM"
when i find the
COleDateTimeSpan spanElapsed = dtL - dtR;
spanElapsed is supposed to be a positive value i.e., > 0
but i get it as a negative value . what could be the problem ? how do i solve it ?
bcos of this problem the sorting is erroneous .
urgent pls help.
thnx in advance