Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

getAsBusinessTime always returning the currentdatetime

SA-17496

Summary



The function getAsBusinesTime always returns the currentDatetime value and when passed a past date for a parameter value.


Error Messages



No error message...


Steps to Reproduce



Create an activitiy and call the function sending a string value of a date in the past.


Root Cause



The getAsBusinesTime function is written to provide a business date that is not in the past.

Resolution


If the function is passed a date in the past, it instead uses the current datetime to begin the search in the Business Calendar also passed as a parameter.

 

Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us