hi
i realised that the date format function is not very accurate. For
example, the below code will return me true, when in fact it should be
false. Does anyone know how i can resolve this discrepancies?
<cfset Results = StructNew()>
<cfset Results.ClaimDate = ArrayNew(1)>
<cfset Results.ClaimDate[1] = "25/06/2001">
<cfset ClamDate = "06/25/2001">
<cfif DateCompare(
DateFormat(Results.ClaimDate[1],"dd/mm/yyyy") ,DateFormat
(Variables.ClamDate,"dd/mm/yyyy"),"d") EQ 0>
True
<cfelse>
False
</cfif>
Thanks !
Jaime Hoi
Don't shut love out of your life by saying it's impossible to find.
The quickest way to receive love is to give;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists