06-05-2013 07:39 AM
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.
10-18-2013 09:14 AM
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);
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.