Kule, but I'd move the starting <cfoutput> tag, no need to wrap your logic in it:)
----- Original Message ----- From: "Keith McGee" <[email protected]> To: "cf-talk" <[email protected]> Sent: Friday, February 05, 2010 12:09 PM Subject: ***SPAM*** Re: setting cf var with javascript > > this is what I wanted to do, Thanks I figured it out > > <cfoutput> > <cfset ThisDate = now()> > <cfset WorkingDays = 0> > <cfloop from="1" to="5" index="i"> > <cfset ThisDate = DateAdd('d', 1, ThisDate)> > <cfif DayOfWeek(ThisDate) GT 1 AND DayOfWeek(ThisDate) LT 7> > <cfset WorkingDays = WorkingDays + 1> > <cfif WorkingDays EQ 3> > <cfbreak> > </cfif> > </cfif> > </cfloop> > ThisDate: #DateFormat(ThisDate, 'd-mmm-yy')#<br> > </cfoutput> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330446 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

