Hello guys ![]()
I need your help ![]()
How to extract the date of the first day of the previous month and the date of the last day of the previous month?
Thank you ![]()
Hello guys ![]()
I need your help ![]()
How to extract the date of the first day of the previous month and the date of the last day of the previous month?
Thank you ![]()
Assign firstDayOfPrevMonth = Now.AddMonths(-1).AddDays(-Now.Day + 1)
Assign lastDayOfPrevMonth = Now.AddDays(-Now.Day).AddTicks(-1)
Hi,
Can you try Modify Date activity as the following?


Regards,
First date of previous month is New DateTime(Now.Year, Now.Month, 1).AddMonths(-1)
Last date of previous month is New DateTime(Now.Year, Now.Month, 1).AddDays(-1)
Hi @NA_AN
Have a look here:
AND / OR

now.AddDays(-now.Day + 1).AddMonths(-1).Date
Hi @NA_AN
firstDayOfPrevMonth = DateTime.Now.AddMonths(-1).AddDays(-DateTime.Now.Day + 1)
lastDayOfPrevMonth = DateTime.Now.AddDays(-DateTime.Now.Day).AddTicks(-1)
Thank you a lot ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.