I want to subtract 365 days(1 year) from a Date which is in the below format using a script mediator and get the resultant Date in the same format. Following is the code I’ve tried: But it prints Expected Date Or is it possible to achieve this without using Script Mediator? What else can I try apart from using a