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


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

package com.codingdict;

import java.time.ZonedDateTime;
import java.time.temporal.ChronoField;

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

      ZonedDateTime date = ZonedDateTime.parse("2017-03-28T12:25:38.492+05:30[Asia/Calcutta]");
      ZonedDateTime result = date.with(ChronoField.DAY_OF_MONTH,13);
      System.out.println(result);  
   }
}