Example usage for java.time MonthDay toString

List of usage examples for java.time MonthDay toString

Introduction

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

Prototype

@Override
public String toString() 

Source Link

Document

Outputs this month-day as a String , such as --12-03 .

Usage

From source file:Main.java

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

    System.out.println(m.toString());

}