I am trying to convert date..........
String date = null ;
try {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.000'+'0530");
date = Utils.getDateBasedOnCurrentDate(mPosition);
Date attendancedate = dateFormat.parse(date);
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
date = format.format(attendancedate);
Log.e("ddddddddddddddddddd", date);
}catch (ParseException e){
e.printStackTrace();
}
but it gives exception :
java.text.ParseException: Unparseable date: "2016-05-17T18:52:54.078+0530" (at offset 21)