Ecco qua
codice:SimpleDateFormat sdfInput = new SimpleDateFormat( "EEE MMM dd HH:mm:ss zzz yyyy", Locale.US ); String textDate = "Wed Mar 08 16:47:38 CET 2006"; Date date = null; try { date = sdfInput.parse( textDate ); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } SimpleDateFormat sdfOutput = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss.SSS" ); String result = sdfOutput.format( date );