title: Unparseable date exception when converting a string to "yyyy-MM-dd HH:mm:ss"
body: <p>Hi I am trying to convert a string 19611015 to a date formate of ("yyyy-MM-dd HH:mm:ss") before storing it into a sybase database table. I have tried the below code which gives me the error:</p>
  
  <p>Unparseable date: "19611015"</p>
  
  <pre><code>DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  System.out.println(formatter.parse("19611015"));
  </code></pre>
  
  <p>I have been reading some long and complex solutions to this, some suggesting to use Locale. Could someone explain maybe an alternative simple solution to convert string I have to a date format I am after above. Thank you.</p>