Channels
wiremock-php
apidays
wiremock-studio
wiremock-go
cdk-avengers
general
introduce-yourself
random
wiremock-cloud
help
wiremock-java
announcements
community-operations
spec
wiremock-dotnet
outreach-and-advocacy
hacktoberfest-london
documentation
wiremock-js
wiremock-python
Powered by
#help
Title
# help
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
Copy code
{{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
4 Views
Post