How to Calculate Business Days
To calculate a date "3 days later," you can use the addDays() method on a date in a script or SpEL expression.
#today.addDays(3)
However, there is no built-in method to calculate a date "3 business days later." This is because business days vary from company to company or organization to organization. Without knowing which days are considered business days, it is impossible to calculate the number of business days or a date "3 business days later." Questetra does not provide a function to register business days (as of August 2024).
If you need to calculate the number of business days or a date "N business days later," you will need to create your own mechanism that takes into account the business days of your company or organization. You can either write your own script or refer to the following implementation samples for add-on automatic processes:
* In the individual pages of the implementation samples, you can download the service task definition file and import it into your workflow platform. However, please note that there is no guarantee of operation, and it is your responsibility to use it. Additionally, if the specifications of Questetra or linked services change in the future, you will need to modify the code yourself.
Please sign in to leave a comment.
Comments
0 comments