I\'m currently working on some simple project in Java and I have date in the following string:
Java
String dateString = \"Sun 7/14 03:44 AM 2013\";
I tried this out and the following worked,
String stringDate = "Sun 7/14 03:44 AM 2013"; DateFormat format = new SimpleDateFormat("EEE MM/dd hh:mm a yyyy"); System.out.println("Parsed Date = "+format.parse(stringDate));
The output was as follows
Parsed Date = Sun Jul 14 03:44:00 BST 2013