Date comparation problem
I'm using datecompare tags to compare two dates.
Here's the code:
<cfset date1 = "31/10/2011 08:00:00">
<cfset date2 = "01/11/2011 08:01:01">
<cfif dateCompare(date1,date2, "s") EQ 1>
date1 is later than date2
<cfelseif dateCompare(date1,date2, "s") EQ -1>
date1 is earlier than date2
<cfelseif dateCompare(date1,date2, "s") EQ 0>
date1 is equal to date2
</cfif>
And it need return -1 but return 1....
If change the date1 to "30/10/2011 08:00:00" it back work correct..
It's a bug with datecompare?
Thank you!
