Last day in month in a previous month

Hello Guys,
I’m struggling with assign activity how to get the very last day of previous month.
May I combine my already created variable for just getting last month ?
Thank you in advance guys :slight_smile:
image

1 Like

Hi,

Hope the following helps you.

Regards,

@Martin_Kral

Check as below

Hope this helps you

Thanks

You can also use this:

DateSerial(Now.Year,Now.Month,0)

Hope this will hep you!

DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.AddMonths(-1).Month)

Cheers!

Works fantastic ! Many Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.