The following code causes an "Unparseable date" exception when executed. Is there any way I can tell SimpleDateFormat the date string must ends with 00?
public class Main {
public static void main(String[] args) {
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss00");
try {
Date date = format.parse("2009030916301600");
} catch (ParseException ex) {
System.out.println("Exception" + ex);
}
}
}