Javatpoint Logo
Javatpoint Logo

Java Calendar getMinimum() Method

The getMimum() method of java.util.Calendar class is an abstract method. This method is used with calendar object to get the minimum value of specified calendar field as parameter.

Syntax

Parameter

field - the calendar field.

Returns

The minimum value for the given calendar field.

Throws

Does not throw Exception

Example 1

Test it Now

Output:

Date :Wed Aug 08 15:08:26 PDT 2018
The  Minimum (Year) is: 1
The  Minimum (Month)  is: 0
The  Minimum (Day) is: 1
 Date :Tue May 31 15:08:26 PDT 4039
The  Minimum (Year) is: 1
The  Minimum (Month)  is: 0
The  Minimum (Day) is: 1

Example 2

Test it Now

Output:

Date :Sat Nov 23 00:00:00 PST 1996
The  Minimum  (Year) is: 1
The  Minimum  (Month)  is: 0
The  Minimum  (Day) is: 1



Help Others, Please Share

facebook twitter pinterest