Here you can find the source of parseDateTime(String dateString)
public static final Date parseDateTime(String dateString)
//package com.java2s; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import android.util.Log; public class Main { private static final String TAG = "DateTimeHelper"; public static final DateFormat TWITTER_DATE_FORMATTER = new SimpleDateFormat( "E MMM d HH:mm:ss Z yyyy", Locale.US); public static final Date parseDateTime(String dateString) { try {/*from ww w.jav a 2 s .co m*/ Log.v(TAG, String.format("in parseDateTime, dateString=%s", dateString)); return TWITTER_DATE_FORMATTER.parse(dateString); } catch (ParseException e) { Log.w(TAG, "Could not parse Twitter date string: " + dateString); return null; } } }