Mike, Thanks for the reply. The thing with the ABS function is that it only takes the minus sign away.The calculation is actually calculating the dates between 12 Nov 2001 and 28 Feb 2001 NOT 12 Nov 2001 and 28 Feb 2002 as it should.So the number of days is wrong. I am not using cf5 so cant use a UDF. Any other ideas?
Regards, Declan -----Original Message----- From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]] Sent: 20 November 2001 16:21 To: CF-Talk Subject: RE: Datediff Sorry, I meant: <cfset compare= ABS(#DateDiff(d,#DayofYear(#targ#)#,#DayofYear(#implm#)#)#)> Mike -----Original Message----- From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 11:16 AM To: CF-Talk Subject: RE: Datediff Use the ABS funcitons, which will return the positive value. The number is correct, Try this: ABS(<cfset compare=#DateDiff(d,#DayofYear(#targ#)#,#DayofYear(#implm#)#)#>) Im not sure on the pounds, but play with it. Lemme know if this helps. Mike -----Original Message----- From: Declan Maher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 11:11 AM To: CF-Talk Subject: RE: Datediff I am having problems comparing two dates. My question is how to compare two dates that come from different years. For example if I use the code below to compare a date of 12 Nov 2001 and 28 Feb 2002 to get the date difference I get -257 days. <cfset compare=#DateDiff(d,#DayofYear(#targ#)#,#DayofYear(#implm#)#)#> <cfset comparison_list=#ListAppend(comparison_list,#compare#)#> I have tried other means of doing this but with no success. Can somebody suggest the correct code to use to compare dates that overlap years? Thanks in advance, Declan maher -----Original Message----- From: Carlisle, Eric [mailto:[EMAIL PROTECTED]] Sent: 20 November 2001 16:03 To: CF-Talk Subject: RE: AUTO TABLE WIDTH <table width="xxx"> ??? EC -----Original Message----- From: William J Wheatley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 10:51 AM To: CF-Talk Subject: Re: AUTO TABLE WIDTH :) not enough coffee A <TABLE> will now SHOW on the browser screen until it reaches the </table> Because it has to read through the whole table to generate Widths and such but on large tables that can slow down the display of tables by a few seconds. Now there is a CODE you put into the page or the table tag that lets the Browser know this is a PREDEFINED size and to display it on the fly I forget what that code is any idea? Thanks all, Bill Wheatley Director of Development Certified Advanced ColdFusion 5 Developer AEPS INC Allaire ColdFusion Consulting Partner www.aeps.com www.aeps2000.com 954-472-6684 X303 ICQ: 417645 ----- Original Message ----- From: "Bud" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 10:35 AM Subject: Re: AUTO TABLE WIDTH > On 11/20/01, William J Wheatley penned: > >Whats the Code to AUTOSET the table size of a <table> so that the table > >does not have to get to the </table> before the table can be displayed? > > What? LOL > -- > > Bud Schneehagen - Tropical Web Creations > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] > http://www.twcreations.com/ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists