title: Year 0000 in java
body: <p>When I parse a date with the year 0000 it appears to be stored as the year 0001.</p>
  
  <p>See below for code:</p>
  
  <pre><code>String dateStr = "00000102";
  System.out.println(dateStr);
  DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
  Date date = dateFormat.parse("00000102");
  String convertedStr = dateFormat.format(date);
  System.out.println(convertedStr);
  </code></pre>
  
  <p>The output is as per below:</p>
  
  <pre><code>00000102
  00010102
  </code></pre>
  
  <p>Is there a way to represent the year 0000 in Java using the standard Java API?</p>