M
mike
Hi,
How can I convert this:
String time = "01-Apr-08.12:38:04";
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy'.'hh:mm:ss ");
try {
Date date = dateFormat.parse(time);
} catch (ParseException e) {
e.printStackTrace();
}
I get the following:
java.text.ParseException: Unparseable date: "01-Apr-08.12:38:04"
at java.text.DateFormat.parse(DateFormat.java:337)
Any ideas on how I can work around this?
//mike
How can I convert this:
String time = "01-Apr-08.12:38:04";
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy'.'hh:mm:ss ");
try {
Date date = dateFormat.parse(time);
} catch (ParseException e) {
e.printStackTrace();
}
I get the following:
java.text.ParseException: Unparseable date: "01-Apr-08.12:38:04"
at java.text.DateFormat.parse(DateFormat.java:337)
Any ideas on how I can work around this?
//mike