JavaRush /Blog Java /Random-ES /Ingrese la fecha usando el teclado en el formato “18/08/2...
bro
Nivel 14
Красноярск

Ingrese la fecha usando el teclado en el formato “18/08/2013” Muestre esta fecha en el formulario “18 DE AGOSTO DE 2013”.

Publicado en el grupo Random-ES
Dime por qué no se compila en el servidor. entrada y salida: 25/12/1658 25 DIC 1658 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String date = reader.readLine(); SimpleDateFormat s = new SimpleDateFormat("MM/dd/yyyy"); Date y = s.parse(date); SimpleDateFormat a = new SimpleDateFormat("MMM dd, yyyy", Locale.ENGLISH); System.out.println(a.format(y).toUpperCase());
Comentarios
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION