Removing Weekends from a Calculated Formula

B

BradL

Hi,

I've created a few custom date fields. I want to subtract
a fixed quantity of days from one of these dates but I
want the calculation to exclude weekends.

Any ideas????

Thanks,
Brad
 
G

Gérard Ducouret

Hello Brad,

Try the ProjDateSub( date; duration; calendar ) function.

Gérard Ducouret

Excerpt of the Help :
Returns the date that precedes another date by a specified duration.

Syntax

ProjDateSub( date, duration, calendar )

date Required; Variant. The original date from which duration is
subtracted.

duration Required; Variant. The duration to subtract from date.

calendar Optional; String. The calendar to use when calculating the date
difference. If calendar is not specified, the default for the current
resource is the resource calendar, or for the current task, the task
calendar or the standard calendar if there is no task calendar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top