Example usage for java.text SimpleDateFormat get2DigitYearStart

List of usage examples for java.text SimpleDateFormat get2DigitYearStart

Introduction

In this page you can find the example usage for java.text SimpleDateFormat get2DigitYearStart.

Prototype

public Date get2DigitYearStart() 

Source Link

Document

Returns the beginning date of the 100-year period 2-digit years are interpreted as being within.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    SimpleDateFormat formatter = new SimpleDateFormat();

    String date = formatter.format(new Date());
    System.out.println(formatter.get2DigitYearStart());
    System.out.println("date = " + date);
}