Example usage for java.time Month adjustInto

List of usage examples for java.time Month adjustInto

Introduction

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

Prototype

@Override
public Temporal adjustInto(Temporal temporal) 

Source Link

Document

Adjusts the specified temporal object to have this month-of-year.

Usage

From source file:Main.java

public static void main(String[] args) {
    Month m = Month.from(LocalDate.now());

    Temporal n = m.adjustInto(LocalDate.now());
    System.out.println(n);/*from  w  w  w  .  j  ava  2  s .  c om*/

}