I had to do this...

CreateDate( Year(Now()), Month(Now()), Day(Now()) )

instead of...

 Now()

strange....

--
Chris Edwards
Web Application Developer
Outer Banks Internet, Inc.
252-441-6698
[EMAIL PROTECTED]
http://www.OuterBanksInternet.com

----- Original Message -----
From: "Robert Everland" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 3:13 PM
Subject: RE: DateDiff bug?!


> I am getting the same results in CF5. IS is supposed to be like that?
>
> Robert Everland III
> Web Developer Extraordinaire
> Dixon Ticonderoga Company
> http://www.dixonusa.com
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 3:03 PM
> To: CF-Talk
> Subject: Re: DateDiff bug?!
>
>
> There is a datedif() bug in CFMX. Use the updater to fix it.
>
>
>
> > ---------------------------------
> > <cfscript>
> > output = "";
> > for( i=7; i LTE 20; i=i+1 )
> >   {
> >   output = output & i & ": " & DateDiff( "D", Now(), CreateDate( 2002,
> > 10, i ) ) & "<br>";
> >   }
> >
> > </cfscript>
> >
> > <cfoutput>#output#</cfoutput>
> > -----------------------------------
> >
> > 7: -4
> > 8: -3
> > 9: -2
> > 10: -1
> > 11: 0
> > 12: 0   <-------------  whats is going on here?
> > 13: 1
> > 14: 2
> > 15: 3
> > 16: 4
> > 17: 5
> > 18: 6
> > 19: 7
> > 20: 8
> >
> > Whats up with that?
> >
> >
> > --
> > Chris Edwards
> > Web Application Developer
> > Outer Banks Internet, Inc.
> > 252-441-6698
> > [EMAIL PROTECTED]
> > http://www.OuterBanksInternet.com
> >
> >
> >
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to