Answered

How to calculate workdays

Hello,

I would like to show how many days between two Date are workdays. Now I make only sumDays=Date1-Date2. But I would like to receive this difference without weekend and holidays.

Thanks in advance.

Irina

photo
0

Dear Irina,

You may use Bizagi's helper objects for business rules and expressions.

Through them, there are several utilities which provide methods to handle dates, and workdays (related to the working time schema and holidays defined for your project).

For your scenario, you can use the CHelper's class method such as getEffectiveDuration.

Best regards,