Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/01/2008, 07:35
GreenEyed
 
Fecha de Ingreso: octubre-2003
Mensajes: 3.578
Antigüedad: 20 años, 7 meses
Puntos: 51
Re: Obtener fecha GregorianCalendar

Quizá sea un poco más corto...
Cita:
SimpleDateFormat theSDF = new SimpleDateFormat("yyyyMMDD");
String longFECHAACTUAL = theSDF.format(new Date());
S!

PD: Por cierto que no se que haras con GregorianCalendar, pero a mi:

System.err.println(new GregorianCalendar().get(GregorianCalendar.MONTH));

me imprime un 0, tal como indica el API (0-11).