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 1Test it NowOutput: 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 2Test it NowOutput: 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 Class
|