Help - How to input date

Hi Guys,

I have the following issue.

Would like to input the date in Studio based on 1st of previous month and last day of previous month for billing start date and billing end date in SAP.
Any idea how to resolve this issue?


Use assign activity and insert below expression you would get the previous month starting and ending date for your automation. Thanks

Previous Month Start Date:
new system.DateTime(now.Year,now.Month,1).AddMonths(-1)

Previous Month End Date:
new system.DateTime(now.Year,now.Month,1).AddDays(-1)