Java Date Time - 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;
// ww w.  j  a v a 2s  .co m
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.