How to dynamically pick the date from the below mentioned format

Hi @anjani_priya

You could use the following Assign Activity code to obtain the day:

lastDay = If(New DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddDays(-1).DayOfWeek = System.DayOfWeek.Saturday OrElse New DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddDays(-1).DayOfWeek = System.DayOfWeek.Sunday, New DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddDays(-2).ToString("dd-MM-yyyy"), New DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddDays(-1).ToString("dd-MM-yyyy"))

The Output

If this solves your issue, Do mark it as a solution
Happy Automation :star_struck: