Example usage for java.time MonthDay isBefore

List of usage examples for java.time MonthDay isBefore

Introduction

In this page you can find the example usage for java.time MonthDay isBefore.

Prototype

public boolean isBefore(MonthDay other) 

Source Link

Document

Checks if this month-day is before the specified month-day.

Usage

From source file:Main.java

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

    System.out.println(m.isBefore(MonthDay.of(Month.APRIL, 1)));

}