I am using these two local variables in Outsystems that returns the first day of current month and current year and the other one returns the last day of current month and current year.
FirstDayMonth - NewDate(Year(CurrDate()),Month(CurrDate()),1)
LastdayMonth- AddDays(AddMonths(NewDate(Year(CurrDate()),Month(CurrDate()),1),1),-1)
What do I like to know is how can I return the same day, same month but with last year? I want to do the same tin the two variables.
Thank you