I've used the DateJS library in the past for working with dates.

http://www.datejs.com/

It's the best set of tools I've seen so far for saying things like
Date.today().is().Friday() (returns a boolean for whether or not today
is Friday).

So I'd do something like looping over the days of the week, inserting
a spacer if today is Friday, and keep going until the month in the
counter is different than the month in today's date object.

Is that the sort of thing you're looking for?

Judah

On Tue, Sep 6, 2011 at 9:11 AM, Scott Stewart <[email protected]> wrote:
>
> I have table rows with dates (IE: Sunday, January 1, 2011). I need to
> be able to "clone" the rows with this caveat.
>
> I need to recalculate the number of rows based on a day/week
> combination.. ex: September 1st 2011 falls on a Thursday so my pattern
> would look like this:
>
> Thursday
> Friday
>
> spacer
>
> Sunday
> Monday
> Tuesday
> Wednesday
> Thursday
> Friday
> Saturday
>
> spacer
>
> Sunday
> Monday
> Tuesday
> Wednesday
> Thursday
> Friday
> Saturday
>
> etc.
>
> Sunday
> Monday
> Tuesday
> Wednesday
> Thursday
> Friday -- end of the month.
>
> yeah I know... yeech..
>
> Anyways any help would be greatly appreciated.
>
>
> --
> --
> Scott Stewart
> Adobe Certified Instructor, ColdFusion 8 & 9
> Adobe Certified Expert, ColdFusion 8 & 9
>
> Blog: http://www.sstwebworks.com
> Email: [email protected]
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:342264
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to