Skip to content

Instantly share code, notes, and snippets.

@kmb385
Created February 3, 2014 10:20
Show Gist options
  • Save kmb385/8781482 to your computer and use it in GitHub Desktop.
Save kmb385/8781482 to your computer and use it in GitHub Desktop.
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Test {
public static void main(String[] args) throws ParseException {
String strDate = "Wed Oct 02 00:00:00 CEST 2013";
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");
Date date = format.parse(strDate);
System.out.println(date);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment