<cfif not (Day mod 7 is 1) and not (Day mod 7 is 0)>
will give you saturday and sunday.

seems to me you should just loop it through your action and ignore the action/count on 
the weekend.

Stewart McGowan wrote:

> I'm writing a project management package which basically tracks our
> production line,
> however i'm having problems with calculating a critical path,
>
> I convert our local date sructure to a US one ie dd/mm/yyyy to mm/dd/yyyy
> then i do some basic validation on the start date - IsDate - isLeapYear
> etc...
> then i get the day - because i want to cut out weekends if its a saturday i
> add
> two if its a sunday i add one.....here's the problem, how do i cut out the
> non working
> days?? For instance If a job were to start on a wednesday and take five
> working days
> i would want it to finish on the tuesday rather than on the monday if u see
> what i mean?
>
> any help would be appreciated
>
> tia
>
> Stew
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to