How do i parse a date with the format 2020-12-31T11:46:18.000+00:00
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
Date startDate = sdf.parse("2020-12-31T11:46:18.000+00:00");
I get Unparseable date exception. I have tried providing the Z without the quote but still it throws the exception.
The below code also doesn't work
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");