so try
String date = "Fri, 22 Apr 2016 15:29:51 +0600"; SimpleDateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy hh:mm:ss Z"); SimpleDateFormat output = new SimpleDateFormat("dd.M.yyyy HH:mm:ss"); try { Date res = df.parse(date); String formattedTime = output.format(d); // Это результат } catch (ParseException e1) { }
if you need to specify the language, do so
SimpleDateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy hh:mm:ss zzzz", Locale.ENGLISH);
Comment from CJ1 - Here it turns out where the full list of possible formats! Link