G Rice wrote:
my loop looks like this...
<cfloop from = "#form.startDate#" to = "#form.endDate#" index = "i"
step = "#theStep#">

Wow--I'm really surprised this works in CF! Seems very strange to be able to loop over dates in this way.

If I understand what you're trying to do, all you'd need to do is use datediff between the start and end dates to calculate the number of iterations you'd need, then use numbers instead of dates for your from and to values.

Or, you could convert your dates to milliseconds and loop over them as numbers, using the appropriately calculated interval as your step. You'd want to convert the milliseconds back to an actual date if you want to insert a date value into the database of course.

Hope that helps.

--
Matt Woodward
[EMAIL PROTECTED]
http://www.mattwoodward.com/blog

Please do not send me proprietary file formats such as Word, PowerPoint, etc. 
as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to