Java tutorial
import java.util.*; public class Main { public static void main(String[] args) { GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance(); // set gregorian change at another date cal.setGregorianChange(new Date()); System.out.println("Gregorian Change Date" + cal.getGregorianChange()); } }