Example usage for java.text DateFormat isLenient

List of usage examples for java.text DateFormat isLenient

Introduction

In this page you can find the example usage for java.text DateFormat isLenient.

Prototype

public boolean isLenient() 

Source Link

Document

Tell whether date/time parsing is to be lenient.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    DateFormat dateFormat = DateFormat.getDateTimeInstance();

    String s = dateFormat.format(new Date());
    System.out.println(dateFormat.isLenient());

}