Help me please convert string "2022-11-28T20:02:28.215Z" to Date with time zone jn java project. This variant throws exception
String DATE_FORMAT_WITH_TIME_ZONE = "yyyy-MM-dd'T'HH:mm:sssZ";
public static Date parseString(String date) throws ParseException {
return new SimpleDateFormat(DATE_FORMAT_WITH_TIME_ZONE).parse(date);
}