This message was deleted.
# help
s
This message was deleted.
l
Tom already answered here, and I was just coming to the same conclusion. Try something like the following:
Copy code
{{#assign 'aDate'}} {{soapXPath request.body '/RealTimePriceDataWebService/reportBean/ReportBean/ParamValue/text()'}} {{/assign}}

Date from xpath : {{aDate}}

Date from xpath plus one day : {{date (parseDate aDate format="dd-MMM-yyyy") offset='1 days'}}

Simple date : {{date}}
Simple now  : {{now}}

Date from xpath plus one day : {{date (parseDate aDate format="dd-MMM-yyyy") offset='1 days'}}
Should give you the following output:
Copy code
Date from xpath : 21-Oct-2020

Date from xpath plus one day: 2020-10-22T00:00: 00Z

Simple date: 2023-10-17T08: 09:55Z
Simple now: 2023-10-17T08: 09: 55Z

Date from xpath plus one day: 2020-10-22T00: 00:00Z
👍 1
r
That is a big oversight from me that I shd have seen easily. My bad. I should take some rest. Thanks a lot for your valuable time and help.
l
No worries at all. Glad to help 👍