Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Darren Cook

Member since Jun 30, 2009

Recent Blog Comments By Darren Cook

  • Using CFLoop To Loop Over ColdFusion Dates

    Posted on Jun 30, 2009 at 11:07 AM

    To follow up on Everett's idea, of course it's using cfscript which limits what you can do inside the loop, right? Wrong...just write a cffunction and call it from within the loop like so: <cfscript> ...etc... for(ii = startDate; DateCompare(ii, endDate) <=0; ii = DateAdd('yyyy',1,ii)) { r... read more »