convert String to timestamp
807569Jun 1 2006 — edited Jun 1 2006Hi,
I have problem converting the following string to timestamp.
SimpleDateFormat sdf = new SimpleDateFormat(
"MM/dd/yyyy HH:mm");
sdf.setLenient(false);
String date = "200601110300";
long timeInMillis = sdf.parse(date).getTime();
Timestamp timestamp = new Timestamp(timeInMillis);
System.out.println(timestamp);
java.text.ParseException: Unparseable date: "200601110300"
thanks