My method has following fields - id, year and month. 

```
Collection<User> userCollection = getUserForMonth(int id, int year, int month);

```

User give me range of date. Between fromTimestamp and toTimestamp. I have to use method getUserForMonth so but I have no idea how to change these parameters (year and month) dynamiclly. 

From timestamp I make start and end dat like that

```
LocalDate startDate = new Timestamp(csvRaportTransport.getFromTimestamp()).toLocalDateTime().toLocalDate();
LocalDate endDate = new Timestamp(csvRaportTransport.getToTimestamp()).toLocalDateTime().toLocalDate();

```

I can set up year and month like getStartDate but I do not know how to switch it. 

I though about for but how change months and years? Have no idea. 
Could you please help me?