How to add a new date format to magic string automatically in VSI?

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

This article will provide information on adding a specific date format to DevTest.


The VSE date utilities use the Date-Checker properties to determine which date patterns are considered magic string conversions. 

DevTest will magic string dates in VS responses automatically using doDateDeltaFromCurrent("yyyy-MM-dd","0D") and doDateDeltaFromRequest("yy-MM-dd", "2D"). 

doDateDeltaFromCurrent("yyyy-MM-dd","0D") and doDateDeltaFromRequest("yy-MM-dd", "2D") uses the format specified in file.

If VS response has any other date formats which are not defined in, then the specific format(s) need to be added to

Note: We don't recommend make modifications to You need to add to



All supported DevTest environments.

You can magic string specific date format(s) in VSI response by doing the below.

. First need to add the regular expression of the date format to in the Date-Checker properties.

Note: Need to validate the regular expression with the date format. DevTest provides Regular Expression Helper which is available in Workstation-->Help-->Regular Expression Helper or some other Regular Expression validator tool can be used.

.  Then add the specific date format to in the Date format section.



Additional Information:

. Documentation on Magic Dates is available to

. Documentation on Date-Checker properties and formats is available at