1

Converting String to Date error

view story
linux-howto

http://stackoverflow.com – I have date string value like this: Fri, 27-Sep-2013 08:29:59 GMT And i need, to convert it in Date format I tried like this: private Date modifyDateLayout(String inputDate) { DateFormat format = new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); format.setTimeZone (TimeZone.getTimeZone ("GMT")); Date d = null; try { d = format.parse(inputDate); } catch (ParseException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } return d; } But it didn't work, and e= (HowTos)