Forum Discussion
Sandyapitester
Frequent Contributor
Hi All,
So far in my suite property have used ${= new Date().format('yyyy-MM-dd')}
this will help us to get the current date and time
but now I need to get the date current date + 2 or -2
I tried like
So far in my suite property have used ${= new Date().format('yyyy-MM-dd, +2')}
but it's not working.
Please share the imput
PaulMS
8 years agoSuper Contributor
From examples in the link sanj suggested
new Date().plus(2).format('yyyy-MM-dd')
new Date().minus(2).format('yyyy-MM-dd')
Related Content
- 5 years ago
- 4 years ago
- 9 years ago
- 4 years ago
Recent Discussions
- 5 days ago
- 9 days ago