I am working with the Twitter api. I get this back from the api
"created_at": "Mon Dec 17 21:37:27 +0000 2018"
How can I make this a nice date like:
17 Dec 2017 ?
DateFormat outputFormat = new SimpleDateFormat("dd MMM yyyy");
DateFormat inputFormat = new SimpleDateFormat("????");
String inputDateStr = "Mon Dec 17 21:37:27 +0000 2018";
Date date = inputFormat.parse(inputDateStr);
String s = outputFormat.format(date);
can someone help me with this one? something like "EE MMM dd H:m:s +0000 yyyy" ?