Questions asked by Joachimhttps://answers.axonivy.com/questions/asked-by/557/joachim/?type=rssQuestions asked by <a href="/users/557/joachim" >Joachim</a>enTue, 07 Jul 2015 15:15:22 -0400Get a work day in the past from a day in the futurehttps://answers.axonivy.com/questions/1392/get-a-work-day-in-the-past-from-a-day-in-the-future<p>I am using the following code to get a work days in the future or past.</p> <pre><code>in.terminateEndDateTime = ivy.cal.getWorkDayIn(in.terminateStartDateTime, in.days); </code></pre> <p>When I use the API with negative days, the API does not return a date in the past, instead the given (or current) date is returned. Example:</p> <pre><code>IBusinessCalendar.getWorkDayIn(-10) // returns current date, without any calculation </code></pre> <p>Have anyone an idea? THX for the help.</p>JoachimTue, 07 Jul 2015 15:15:22 -0400https://answers.axonivy.com/questions/1392/get-a-work-day-in-the-past-from-a-day-in-the-futurebusiness-calendar