public static Date convertDate(String date){
  Date receivedDate=null;
  try {
    receivedDate=dateFormat.parse(date);
  }
 catch (  ParseException e) {
    Log.e(TAG,"Invalid date format." + e);
  }
  return receivedDate;
}

public static Date convertDate ( String date ) { Date receivedDate = null ; try { receivedDate = dateFormat . parse ( date ) ; } catch ( ParseException e ) { Log . e ( TAG , "Invalid date format." + e ) ; } return receivedDate ; }
convert the date to the standard format .
