1
Answer

how to specifiy a vacation for a company in broadworks

Cassie Mod

Cassie Mod

7y
157
1

HI,

 

Ive got the following question.
During the christmas holidays the company was closed, but how can i set that in the timetables in broadworks? nicely ? ( the work around is now open for one minute of the week).
does anyone now how to do this properly and what kind of request should be used ?
 
thnx  
Answers (1)
0
Nir Bar
NA 773 0 15y
Hi Petre,

There isn't an automatic way of doing it.
I think the best way will be to count day-by-day in a loop:
int count = 0;
for( DateTime d = dt1.Value.Date; d <= dt2.Value.Date; d = d.AddDays(1))
{

if(( d.DayOfWeek != DayOfWeek.Saturday) && (d.DayOfWeek != DayOfWeek.Sunday))
{
++count
}
}
return count


Please mark this post as an answer if it helps you

Nir