How to add hours to timestamp which is dynamically generated from request xml

book

Article ID: 142231

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

I need to add hours to timestamp which is dynamically generated from request xml and each time we will get new timestamp.

 

Example  : Request xml time stamp - 2016-02-08T15:20:49.483+01:00

                   Add 8 hours to time stamp -  2016-02-08T23:20:49.483+01:00

Environment

Release : 10.5

Component : CA Service Virtualization

Resolution

Please use below property in vsi file. Add this property in response for the attribute which you want to add additional hours. Please try the same at your end let us know if you have any issues.

{{=doDateDeltaFromRequest(”yyyy-MM-dd'T'HH:mm:ss.SSSZ”,”8H”); /*2019-02-08T15:20:49.483*/}}