我在Outsystems中使用了这两个局部变量,它返回当前月份和当前年份的第一天,另一个返回当前月份和当前年份的最后一天。
FirstDayMonth -NewDate(年(CurrDate()),月(CurrDate()),1)
LastdayMonth- AddDays(AddMonths(NewDate(Year(CurrDate()),Month(CurrDate()),1),1),-1
我想知道的是,我如何才能返回同一天,相同的月份,但与去年?我想在这两个变量中做同样的事情。
谢谢
发布于 2016-01-05 01:59:24
你可以这样做:AddYears(yourdate, -1)
https://stackoverflow.com/questions/34596332
复制相似问题