>>>>I find it nice also. But for some people it is way too complicated - rolling my eyes ;)
>>>
>>>It is if you throw Math Sign into the picture.
>>
>>Math.Sign() is as basic or elementary as it can get
>>
>>in vfp the code would be
>>
>>d1 = datetime()
>>d2 = datetime()
>>
>>result = sign(d1 - d2)
>>do case
>>case result > 0
>> && d1 > d2
>>
>>case result == 0
>> && d1 == d2
>>
>>otherwise
>> && d1 < d2
>>endcase
>>
>>
>>I have the impression you don't spend any time to understand the basics, nor do you spend time/ figuring out how to solve a problem
>>
>>Cannot say JB is wrong when he writes - if you did not see it in a blog, you don't know
>
>I didn't say I don't understand your code, I said I do not find it simpler than my solution. Don't presume anything and don't join JB in his bad words.
>
>Also, why do I need to switch from one working solution to the solution in 20 more lines?
I guessed when you originally posted, that you didn't have a working solution. You asked a question, we're given an answer, threw out the answer and went your own way. If you don't want to discuss the options, don't ask the question.