[Solved] Exception on Date parsing android [duplicate]


Your date format MM/dd/yyyy'T'HH:mm:ss which your using is incorrect 1/31/2018 8:58:12 AM +00:00 and return different value from expected.

SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy'T'HH:mm:ss");

return 1/31/2018T8:58:12

And you are trying to pass below

1/31/2018 8:58:12 AM +00:00

1

solved Exception on Date parsing android [duplicate]