I’ve had this assign activity in my workflow for months and it’s never given me issues until today:
New DateTime(now.Year, now.Month, DateTime.DaysInMonth(now.Year, now.addmonths(-2).Month)).tostring(“dd”)
Basically, I just need to capture the number of days 2 months ago. I keep getting the error in the title of this post. Any help or easy fix would be appeciated.