
10/12/2005, 11:52
|
 | | | Fecha de Ingreso: octubre-2005 Ubicación: Aquí y allá.
Mensajes: 323
Antigüedad: 19 años, 4 meses Puntos: 7 | |
Esto te convierte una fecha de String a Date:
java.text.SimpleDateFormat fecha = new SimpleDateFormat("dd/MM/yyyy");
java.util.Date date = null;
try {
date = fecha.parse("10/05/2004");
} catch (java.text.ParseException e) {
e.printStackTrace();
}
// Y esto otro de Date a String:
String fecha1 = fecha.format(date);
Esto me funciona Ok con la JDK 1.4.02_07. Suerte!
__________________ El último TipdaR |