Java tutorial
import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class DateOutils { public static Date stringToDate(String d) throws ParseException { DateFormat formatter = new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy", Locale.UK); Date date = (Date) formatter.parse(d); return date; } }