Example usage for java.time LocalDate adjustInto

List of usage examples for java.time LocalDate adjustInto

Introduction

In this page you can find the example usage for java.time LocalDate adjustInto.

Prototype

@Override 
public Temporal adjustInto(Temporal temporal) 

Source Link

Document

Adjusts the specified temporal object to have the same date as this object.

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDate a = LocalDate.of(2014, 6, 30);
    a.adjustInto(LocalDate.of(2015, 6, 30));

}