Java Calendar isWeekDateSupported() Method

The isWeekDateSupported() method of Calendar class returns the Boolean value. It checks if this calendar supports the week date. The default value is false.

Syntax

Parameter

No parameter is passed.

Returns

Returns the Boolean value.

Throws

Does not throw Exception.

Example 1

Output:

Current Date and Time is Mon Aug 13 21:24:01 PDT 2018
Interpretation is lenient: true
NOW Date and Time is Mon Nov 11 21:24:01 PST 1996
Interpretation is lenient: true

Example 2

Output:

week date  :2
Is  week date supported :true
after clearing week date:
 week date  :3
Is  week date supported :true
 week date  :3
Is  week date supported :true