How the dates are magic stringed in VSI response?

Document ID : KB000016235
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

This article will provide information on how a Date is magic stringed in the VSI-->Response.

Question:

How the dates are magic stringed in VSI response?

Environment:
All supported DevTest environments.
Answer:

By design, DevTest use the Magic Date functions doDateDeltaFromCurrent() and doDateDeltaFromRequest() when magic string the dates in Request and Response. Here is how the VSI->Response is created with the date functions.

. doDateDeltaFromCurrent() - When there is no date in the request but the response has a date then VSI creates a magic date using doDateDeltaFromCurrent. 

. doDateDeltaFromRequest() - When a Date is in the Request and the same Date is also in the Response  then VSI creates a magic date using doDateDeltaFromRequest.

Additional Information:

Documentation on Magic Dates is available at https://docops.ca.com/devtest-solutions/10-1/en/using/using-ca-service-virtualization/ca-service-virtualization-concepts/magic-strings-and-dates/magic-dates .