What is a good way to loop over the months within a time period? For
example, given a starting date of 11/17/2003 and an end date of 2/19/2003,
I'd need to loop through Nov03, Dec03, Jan04, Feb04. Within the loop I'll
be doing queries with a where clause like:
WHERE somedate BETWEEN #month#/1/#year#
AND #month#/#DaysInMonth("#month#/1/#year#")#/#year#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189853
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54