I am trying to use Simple date Format for change the data, but am getting the parse exception
java.text.ParseException: Unparseable date: "11/08/2016 02:00:00 PM" (at offset 20)
at java.text.DateFormat.parse(DateFormat.java:579)
My input date is "11/08/2016 02:00:00 PM"
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss aa",Locale.getDefault());
try
{
expiryDate = df.parse(mPayRespo.get(position).getVoucherExpDate());
}
catch(ParseException pe){
pe.printStackTrace();
}
In my settings Date and time is set as Automatic. Am getting this issue only in SAMASUNG S6
Can any one please help me