Here you can find the source of parseTwitterDate(String theDate)
public static Date parseTwitterDate(String theDate) throws ParseException
//package com.java2s; //License from project: Apache License import java.text.ParseException; import java.util.Date; public class Main { private static java.text.SimpleDateFormat format = new java.text.SimpleDateFormat( "EEE, dd MMM yyyy HH:mm:ss Z"); public static Date parseTwitterDate(String theDate) throws ParseException { if (theDate == null || theDate.length() == 0) { return null; }/*ww w.ja va 2 s .co m*/ synchronized (format) { Date createdAt = format.parse(theDate); return createdAt; } } }