Forum Discussion
- NBorovykhModerator
Hi Pallavi,
In ReadyAPI you can achieve the same by using dynamic property expansion like this:
${=Date d = new Date() - 32;d.format( 'yyyy-MM-dd' )} //32 days are subtracted from the current date
How do I use magic strings in Ready API as like in Devtest?
for ex: Below format is used to subtract 32 days from the date passed i.e. 2012-05-25
{{=doDateDeltaFromCurrent("yyyy-MM-dd","-32D");/*2012-05-25*/}}
So my query is how do we do this in Ready API?
Could someone please help on this?
Hi Pallavi,
In ReadyAPI you can achieve the same by using dynamic property expansion like this:
${=Date d = new Date() - 32;d.format( 'yyyy-MM-dd' )} //32 days are subtracted from the current date