programming-examples/java/Servlets_Session_Swing_Util/Show dates before 1970.java

14 lines
381 B
Java
Raw Normal View History

2019-11-15 12:59:38 +01:00
Show dates before 1970
public class DatePrint1 {
public static void main(String[] argv) {
//+
Calendar c = new GregorianCalendar(1918, 10, 11);
System.out.println(c.get(Calendar.DAY_OF_MONTH) + " " +
c.get(Calendar.MONTH) + ", " +
c.get(Calendar.YEAR) + " " +
c.get(Calendar.ERA));
//-
}
}