Hi community,
I added today’s date to a new test case, so that today’s date can be entered in ‘Date from’.
But now I want to add a future date (1 month from now) to ‘Date to’.
Does anyone know, how I can do this?
Hi community,
I added today’s date to a new test case, so that today’s date can be entered in ‘Date from’.
But now I want to add a future date (1 month from now) to ‘Date to’.
Does anyone know, how I can do this?
You should no longer use java.util.Date
class, which is too old, poorly designed.
You should use java.time.LocalDateTime
and other classes available since Java 8. See
How to +1 month? — Java8 Date/Time API provides a straight forward answer to it