Hi, I have a string like:
String selectedDate = "Fri Jan 17 00:00:00 CAT 2014";
I need to format it to:
DD.MM.YYYY = 17.01.2014 00:00:00
Can anyone help please see code below:
String date = getDate(selectedDate);
private String getDate(String inpuDate) {
Date date = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss ").parse(inputDate);
return new SimpleDateFormat("dd.mm.yyyy hh:mm:ss").format(date);
}