Re: DateDiff being a bit weird.....

2004-01-15 Thread Jochem van Dieten
A.Little wrote: cfloop from=0 to=5 index=i cfset tempdate=dateadd('d',i,'26-mar-2004') cfset temp2 = '31-mar-2004' #i#: #tempdate# to #temp2#: #datediff('d',tempdate,temp2)#br /cfloop I get the following output: 0: {ts '2004-03-26 00:00:00'} to 31-mar-2004: 4 1: {ts '2004-03-27

DateDiff being a bit weird.....

2004-01-14 Thread A.Little
Hi all, Am I going mad or is there something I'm missing If I run the following code: cfloop from=0 to=5 index=i cfset tempdate=dateadd('d',i,'26-mar-2004') cfset temp2 = '31-mar-2004' #i#: #tempdate# to #temp2#: #datediff('d',tempdate,temp2)#br /cfloop I get the following output: 0: