troubleshooting Question

Understanding the DateDiff function

Avatar of onaled777
onaled777Flag for United States of America asked on
Web Development SoftwareWeb ServersColdFusion Language
6 Comments4 Solutions731 ViewsLast Modified:
Does anyone know why the code below would return 5 or 6 for its value when LastContacted is 10/21/2009. I only want it to return 5 because there are 5 days in between today and that date.  

Any direction you can provide would be appreciated.
<cfset displaydate = dateDiff('d', LastContactDate, Now()) + 1 />
ASKER CERTIFIED SOLUTION
Zvonko
Systems architect
Join our community to see this answer!
Unlock 4 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros