Add a new date to (+1 month)

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 :wink:

@ruedigerl Try this post: How to add days & years to current date using 'java.time.LocalDateTime'