Java GregorianCalendar .isWeekDateSupported ()

Syntax

GregorianCalendar.isWeekDateSupported() has the following syntax.

public final boolean isWeekDateSupported()

Example

In the following code shows how to use GregorianCalendar.isWeekDateSupported() method.


import java.util.GregorianCalendar;
//from w w  w  . j a  v  a  2 s. c  om
public class Main {

   public static void main(String[] args) {

      GregorianCalendar cal = 
              (GregorianCalendar) GregorianCalendar.getInstance();

      System.out.println(cal.getTime());
      
      
      System.out.println(cal.isWeekDateSupported());

   }
}

The code above generates the following result.