Java Calendar getMinimalDaysInFirstWeek() Method
The 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.
No parameter is passed.
Returns an integer value which is minimum days required in first week.
Does not throw exception.
Example 1Test it Now
Today is :Wed Oct 23 14:35:20 PDT 1996 Minimal days required :1
Example 2Test it Now
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