I have a date as a String "20161006133408" in the format "yyyyMMddhhmmss". So I make things like:
DateFormat dfmt2 = new SimpleDateFormat( "yyyyMMddhhmmss" );
dfmt2.setLenient(false);
try {
Date d = dfmt2.parse(updateTimeDate);
} catch{...}
And I get the following Exception at the line where I parse:
java.text.ParseException: Unparseable date: "20161006133408"
Any ideas?
Thanks.