Hey @anjani_priya
Use the following code in assign activity
If( New DateTime(Now.Year, Now.Month, 1).AddDays(-1).DayOfWeek = DayOfWeek.Sunday OrElse New DateTime(Now.Year, Now.Month, 1).AddDays(-1).DayOfWeek = DayOfWeek.Saturday,
New DateTime(Now.Year, Now.Month, 1).AddDays(-2).ToString(“yyyy-MM-dd”),
New DateTime(Now.Year, Now.Month, 1).AddDays(-1).ToString(“yyyy-MM-dd”)
)
For choosing the date dynamically use can tweak the selector using attributes like aaname or innertext
Hope this helps!