Example usage for java.time LocalDate minus

List of usage examples for java.time LocalDate minus

Introduction

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

Prototype

@Override
public LocalDate minus(TemporalAmount amountToSubtract) 

Source Link

Document

Returns a copy of this date with the specified amount subtracted.

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDate a = LocalDate.of(2014, 6, 30);
    LocalDate b = a.minus(Period.ofDays(100));
    System.out.println(b);//from  www. j ava 2s .com
}