
17/01/2013, 08:45
|
| | Fecha de Ingreso: septiembre-2012 Ubicación: Riobamba
Mensajes: 7
Antigüedad: 12 años, 4 meses Puntos: 0 | |
Respuesta: Fecha y hora en NetBeans, como obtenerla y guardarla? Date now = new Date(System.currentTimeMillis());
SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat hour = new SimpleDateFormat("HH:mm:ss");
System.out.println(date.format(now));
System.out.println(hour.format(now));
System.out.println(now); |