java.time.LocalDate.with(TemporalField field, long newValue)


java.time.LocalDate.with(TemporalField field, long newValue)

package com.codingdict;

import java.time.LocalDate;
import java.time.temporal.ChronoField;

public class LocalDateDemo {
   public static void main(String[] args) {

      LocalDate date = LocalDate.parse("2017-01-03");
      LocalDate result = date.with(ChronoField.DAY_OF_MONTH,13);
      System.out.println(result);  
   }
}