title: SimpleDateFormat returning two different results for same input
body: <p>I recieve a date String of 02.04.201406:26:06 which i convert to another date</p>
  
  <pre><code>public static final SimpleDateFormat SDF_DATE_TIME_RECEIVED = new SimpleDateFormat("dd-MM-yy HH:mm:ss");
  static{
      SDF_DATE_TIME_RECEIVED.setTimeZone(TimeZone.getTimeZone("IST"));
  }
  SimpleDateFormat originalDateFormat = new SimpleDateFormat("dd.MM.yyyyHH:mm:ss");
  originalDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
  Date date = originalDateFormat.parse(dateString);
  String newDateString = SDF_DATE_TIME_RECEIVED.format(date));
  </code></pre>
  
  <p>This performs correctly and gives me the date as 02-04-14 11:56:06</p>
  
  <p>Now i use this newDateString to again produce two different formats as illustrated below:</p>
  
  <pre><code>SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yy");
  SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
  Date date = SDF_DATE_TIME_RECEIVED.parse(newDateString);
  String datePart = dateFormat.format(date);
  String timePart = timeFormat.format(date);
  </code></pre>
  
  <p>Now the problem is on Production server for dateString mentioned above i got the output as:</p>
  
  <pre><code>newDateString = "04/02/2014 11:56:06"
  datePart = "04/02/70"
  timePart = "00:56:06"
  </code></pre>
  
  <p>I tried to recreate the scenario on dev environment but i got the correct results as:</p>
  
  <pre><code>newDateString = "04/02/2014 11:56:06"
  datePart = "04/02/14"
  timePart = "11:56:06"
  </code></pre>
  
  <p>Even on doing the same process on production environment by resending the request the correct output appears.</p>
  
  <p>What could be going wrong here? This is not an isolated issue. It is happening for a lot of requests with incorrect date almost random.</p>