Java GregorianCalendar create from year, month, day, time

Description

Java GregorianCalendar create from year, month, day, time

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Main {
  public static void main(String[] args) {
     GregorianCalendar someDate = new GregorianCalendar(2014, Calendar.MARCH,
           21, 7, 30, 45);//  ww w  .  j a va  2 s  .c  om

     System.out.println(someDate.getTime());

  }

}



PreviousNext

Related