Easy... Use a conditional CFLOOP:
<cfset currDate=dateadd('d', -14, now())>
<cfset endDate =dateadd('d', 14, now())>
<cfloop condition = "#currDate# LESS THAN #enddate#">
<cfoutput>#currDate#</cfoutput>
<cfset currDate = dateadd('d', 1, currDate)>
</cfloop>
-----Original Message-----
From: CF_JONNY [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:55 PM
To: CF-Talk
Subject: Dates ....NOW() to define a range
Help!
Any Ideas on how to return a range of dates using Now()??
I need to return week numbers around today's date including 2 weeks on each
side?
Jon
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists