Example usage for java.time LocalDate lengthOfMonth

List of usage examples for java.time LocalDate lengthOfMonth

Introduction

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

Prototype

@Override
public int lengthOfMonth() 

Source Link

Document

Returns the length of the month represented by this date.

Usage

From source file:Main.java

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

    System.out.println(a.lengthOfMonth());
}