AnsweredAssumed Answered

Magic Dates Method (doDateDeltaFromCurrent)

Question asked by salman.jarved on Jan 13, 2015
Latest reply on Jan 14, 2015 by yoshio.katayama

Hi,

 

I have a situation here that I have recorded a transaction which has XML tag with magic string as below:

 

Recorded on 08/10/2014 and within LISA VSI response I have following:

<dateLastGenMnt>{{=doDateDeltaFromCurrent("yyyy-MM-dd","10D");/*2014-10-08*/}}</dateLastGenMnt>

 

Actual Results when I ran the service in  Playback on 13/01/2015

<dateLastGenMnt>2014-10-09</dateLastGenMnt>

 

Desired Results when I am running service in Playback on 13/01/2015 (As per LISA documentation)

<dateLastGenMnt>2015-01-23</dateLastGenMnt>

 

 

According to LISA documentation about Magic Strings the above method doDateDeltaFromCurrent should return 23/01/2015, that is 10 days ahead of time when you are calling in playback mode. Can anyone suggest what is the issue here in my scenario?  Any help would be appreciated.

 

 

Regards,

Salman

Outcomes