https://linen.dev logo
Title
h

Haneesha Arimilli

04/28/2023, 2:01 PM
Iam mocking some data .In response for current date iam using regular expression {{now formate yyyyMMdd}} if i want to add 3 days to the current date can i know regular expression for future date.
a

Aaron

04/28/2023, 2:38 PM
You can use
offset
to change the date
{{now offset='3 days' format='yyyyMMdd'}}
https://wiremock.org/docs/response-templating/#date-and-time-helpers
👍 3
o

Oleg Nenashev

04/28/2023, 4:51 PM
@Aaron is right. While you can technically do it with regex it's unlikely something you want