Hi Zahib,
Your requirement can be achieved using native functions in Blueprism.
Create the following data items:
1. Of Date type, which stores input date.
2. Of Number type, which stores the last date of the month.
3. Of Date type, which stores the required output date.
Now add a calculation stage with the expression: DateDiff(9, [Date], AddMonths([Date], 1))
Another calculation stage with the expression: MakeDate([Last Day of Current Month], FormatDate([Date], ""MM""), FormatDate([Date], ""yyyy""))
First function will calculate the number of days difference between two dates:
1. Input date
2. Date of the same day in the next month.
Second calculation will calculate actual last date of that month.
Please find the attachments below for better understanding. Hope it helps.
Thank you.