DateDiff confusion
Hello, everyone,
I'm looping through all the days of the current month, using DateDiff to display the difference in days between the current date and the date of the loop, and I'm getting TWO days showing a difference of 0.
<cfloop from="1" to="#DaysInMonth('01-Nov-14')#" index="ndx">
#DateDiff('d',DateFormat(ndx & '-Nov-14'),now())#<br />
</cfloop>
The output will be
6
5
4
3
2
1
0 <!--- (today, Nov 7) --->
0 <!--- (tomorrow, Nov 😎 --->
-1
-2
-3
-4
How can there be two days with a difference of 0?
V/r,
^_^
