DateCompare

"-->
 DateCompare ("date1" , "date2"  [, "datePart" ]) 

Description

Performs a full date/time comparison of two dates. Returns the following:

  • 1, if date1 is less than date2

  • 0, if date1 is equal to date2

  • 1, if date1 is greater than date2

Example

 <cfset exampleDate = now()>  <cfoutput>  Compare the current date with 08/01/2002: #DateCompare(exampleDate, '08/01/2002')#  </cfoutput> 


Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net