I have created common method for that, may helpful to you:
/**
* Convert Date from-to Format
* @param date
* @return
*/
public static String convertDate(String date, String fromFormat, String toFormat) {
// TODO Auto-generated method stub
try {
return new SimpleDateFormat(toFormat).format(new SimpleDateFormat(fromFormat).parse(date));
} catch (Exception e) {
Log.e(TAG, "Date Converting " + date + " : "+ e.getLocalizedMessage());
}
return null;
}