title: Unparseable date with extra number in Java
body: <p>What's wrong in this code? I'm trying to parse a date format that has 0 between years and months.</p>
  
  <pre><code>import java.text.SimpleDateFormat;
  
  class Main {
      public static void main(String[] args) {
          SimpleDateFormat format = new SimpleDateFormat("yyyy'0'MMdd");
          try {
              Date date = format.parse("201600101");
              System.out.println(date);
          } catch (Exception ex) {
              System.out.println(ex.getMessage());
          }
      }
  }
  </code></pre>
  
  <p>This outputs Unparseable date: "201600101". If I change '0' to anything but number [e.g. 'X' and format.parse("2016X0101")] this will work.</p>