Java Calendar getMinimum() MethodThe 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. SyntaxParameterfield - the calendar field. ReturnsThe minimum value for the given calendar field. ThrowsDoes not throw Exception Example 1Output: 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 2Output: Date :Sat Nov 23 00:00:00 PST 1996 The Minimum (Year) is: 1 The Minimum (Month) is: 0 The Minimum (Day) is: 1 Next TopicJava-calendar-gettimeinmillis-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India