How to set the previous month date in Data Transform
@addToDate(.DateTime,-30,0,0,0) will return the date 30 days before the DateTime .
@RameshSangili Thank you,
need to set date as 01/03/2024
it should be first day of previous month, current year
how to achieve this
@RameshSangili Thank you,
my requirement is to set the date as first day of previous month, current year
How to achieve this…
Hi @MadhavanS16795014, since the date is constant you can manually put it , if you want to get the previous month alone with this function “@addTodate” in the date , you can add -30 , so you will get the prev month with the current date. so you can concatenate. Hope this helps.
Please pass the parameters for month and date based on business requirements
@(Pega-RULES:DateTime).addCalendar(@CurrentDateTime(), 0, Param.Month, 0, Param.Date, 0, 0, 0)