How to get the previous month First and last date

Hi @Clinton_Das

Use Assign Activity

LHS → create an variable

RHS →

First Date → New DateTime(Now.Year,Now.AddMonths(-1).Month,1).ToString(“dd.MM.yyyy”)
Last Date → New DateTime(Now.Year,Now.Month,1).AddDays(-1).ToString("dd.MM.yyyy")

Have a look on the thread

Regards
Gokul

2 Likes