Hi all, I receive the following date 07/12/2021
as string via webhook in a var called {{ $json["Sent"] }}
.
I’m using this inside a set node and would like to subtract a month from 07/12/2021
in order to be able to assign then 11/2021
to a specific var (I can discard the day, just need month and year).
Should be something like {{ new Date($json["Sent"]).getMonth() -1 }}
but this returns 5
:
Any suggestions how to do this? Thanks for any hint;)