Java Calendar getMinimalDaysInFirstWeek() MethodThe getMinimalDaysInFirstWeek() method returns required minimum days in integer form. The minimal days required in the first week of the year is passed into this method. SyntaxParameterNo parameter is passed. ReturnsReturns an integer value which is minimum days required in first week. ThrowsDoes not throw exception. Example 1Output: Today is :Wed Oct 23 14:35:20 PDT 1996 Minimal days required :1 Example 2Output: Today (Calendarobject) :Wed Aug 08 14:47:21 PDT 2018 Today (GregorianCalendarobject) :Wed Aug 08 14:47:21 PDT 2018 both the calendar object require same Minimal days in first week 1 Next TopicJava-calendar-getminimum-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