This is what I finally went with (watch the wrap):

1. <!--- Default the previous day to the first returned item --->
2. <cfparam name="prevDay"
  default="#LSDateFormat(calendar["event_date"][1], 'mm/dd/yyyy')#" />

3. <cfoutput query="calendar" group="theMONTH">

4.   <h4>#LSDateFormat(calendar.event_date,'MMMM - YYYY')#</h4>

5.   <div id="eventBODY">

6.    <cfoutput>

7.     <cfif 
(LSDateFormat(calendar["event_date"][currentRow],'mm/dd/yyyy') neq prevDay)>

8.      <cfset prevDay = 
LSDateFormat(calendar["event_date"][currentRow],'mm/dd/yyyy') />

9.      <cfset switch = (2 - switch) + 1 />

10.     </cfif>

11.    <div class="#myCSS[switch]#"> - Lots of Crap Here - </div>

12.   </cfoutput>

13.  </div>

14. </cfoutput>


Thanks all that replied with advice! Much appreciated!

-- 
-----------
Les Mizzell

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200837
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to