Comment puis-je convertir un timestamp à partir de aaaa-MM-jjthh:mm:ss:SSSZ format MM/jj/aaaa hh:mm:ss.SSS format? De ISO8601 à l'UTC

Je veux convertir le timestamp 2011-03-10T11:54:30.207 Z pour 10/03/2011 11:54:30.207. Comment puis-je faire cela? Je veux convertir format ISO8601 à l'UTC et puis UTC devrait être l'emplacement courant. S'il vous plaît aider

String str_date="2011-03-10T11:54:30.207Z";
DateFormat formatter ;
Date date ;
formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SSS");
date = (Date)formatter.parse(str_date);
System.out.println("output: " +date );

Exception :java.texte.ParseException: Unparseable date: "2011-03-10T11:54:30.207 Z"

InformationsquelleAutor user617966 | 2011-03-22