HTTP Last-Modified header contains date in following format (example): Wed, 09 Apr 2008 23:55:38 GMT What is the easiest way to parse java.util.Date from this string?
Wed, 09 Apr 2008 23:55:38 GMT
This should be pretty close
String dateString = "Wed, 09 Apr 2008 23:55:38 GMT"; SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz"); Date d = format.parse(dateString);
SimpleDateFormat
1.4m articles
1.4m replys
5 comments
56.9k users