subtract months from a date

Options

Hi All,
I need to subtract months from a date.
The function adjust date can subtract days but not months .
I could use -30 days but it doesn't work for February or if month has 31 days ....
How I can do that ?
Thanks
Elia

Answers

  • Jozef_783863
    Jozef_783863 Posts: 331 admin
    edited August 2020
    Options

    @Elia_321768 Linked below is the related product idea for including an option for "months" in the adjustment units setting. Since number of days in a month varies, I assume all months have 30 days when calculating 1 month ago from today. Is there a different adjustment calculation you have in mind for adjusting by 1 month?

    Dates actions - Unit options
    https://community.pushbot.com/discussion/989