Get a Workday work day in the past from a Day day in the future
I am using the following code to get a Workday work days in the future (IVY-Calendar).or past.
**in.terminateEndDateTime in.terminateEndDateTime = ivy.cal.getWorkDayIn(in.terminateStartDateTime,in.days);**ivy.cal.getWorkDayIn(in.terminateStartDateTime, in.days);
But i dont find When I use the API with negative days, the API does not return a way, to calculate back. The ivy.cal.getWokDayIn didnt like it when i negate date in the days.past, instead the given (or current) date is returned. Example:
Example: 2015.08.31 sub 5 Workingdays = 2015.08.25 IBusinessCalendar.getWorkDayIn(-10) // returns current date, without any calculation
Have anyone an idea? THX for the help.