Here you can find the source of convertStringToDateWithRFC1123(final String dateTime)
public static Date convertStringToDateWithRFC1123(final String dateTime)
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { private static final Date DATE_MIN = new Date(0); private static final SimpleDateFormat RFC1123_DATE_FORMAT = new SimpleDateFormat( "EEE, dd MMM yyyy hh:mm:ss zzz", Locale.US); public static Date convertStringToDateWithRFC1123(final String dateTime) { try {//from w w w. j av a 2 s .c o m return RFC1123_DATE_FORMAT.parse(dateTime); } catch (final ParseException ex) { } return DATE_MIN; } }