cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Script - Business Calendar

Gregory_Roche2
Champ in-the-making
Champ in-the-making

Hello

Before I start writing a business/holiday calendar unity script has anyone done it yet?  The particular workflow I am working on can not use the built in Business Calendar  function.  Therefore I need to create a unity script to pass in a date and x number of business days to calculate the new date  (Date + NDays = NewDate).

Thanks

Greg R.

 

1 REPLY 1

Michael_Shuste1
Champ in-the-making
Champ in-the-making

This is a little late but in case anyone else is in search for this.  date is your start date and days is the number of days you want to add

date = date.AddDays(days / 5 * 7);int extraDays = days % 5;if ((int)date.DayOfWeek + extraDays > 5){     extraDays += 2;}date = date.AddDays(extraDays);
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.