Forum Discussion

Sandyapitester's avatar
Sandyapitester
Frequent Contributor
7 years ago
Solved

How to create datetime string in soapui using groovy with +10 days or -10 days

Hi All,   Am able to get the current time using groovy but need the timestamp 10days and after days format     Groovy scripting:   today = new Date()-10 .format("yyyy-MM-dd HH:mm:ss.SSSSS Z") ...
  • PaulMS's avatar
    PaulMS
    7 years ago

    From examples in the link sanj suggested

     

    new Date().plus(2).format('yyyy-MM-dd')
    new Date().minus(2).format('yyyy-MM-dd')