Questions Tagged With apihttps://answers.axonivy.com/tags/api/?type=rss&user=Matthias%20Langquestions tagged <span class="tag">api</span>enWed, 17 Mar 2010 04:26:00 -0400Conversion of duration as a text into a variable of type durationhttps://answers.axonivy.com/questions/339/conversion-of-duration-as-a-text-into-a-variable-of-type-duration<p>I need to convert a string variable in the ISO8601 format (e.g. 'P2D') into a variable of type Duration to use it in a task switch. The API method <code>myText.toDuration()</code> converts into the Date type not into Duration. How can I do that?</p>Matthias LangWed, 17 Mar 2010 04:26:00 -0400https://answers.axonivy.com/questions/339/conversion-of-duration-as-a-text-into-a-variable-of-type-durationivyscriptapi