title: Parsing a date with short month without dot
body: <p>I have a String that represents a date in <strong>French</strong> locale :  09-oct-08 : </p>
  
  <p>I need to <strong>parse</strong> that String so I came up with this SimpleDateFormat : </p>
  
  <pre><code>String format2 = "dd-MMM-yy";
  </code></pre>
  
  <p>But I have a problem with the month part, that seems to be expected with a ending dot : </p>
  
  <pre><code>df2.format(new Date());
  </code></pre>
  
  <p>gives me : </p>
  
  <pre><code> 28-oct.-09
  </code></pre>
  
  <p>What is now the best way for me to make SimpleDateFormat understand ("09-oct-08") ?</p>
  
  <p>Full Code :   </p>
  
  <pre><code>String format2 = "dd-MMM-yy"; 
  DateFormat df2 = new SimpleDateFormat(format2,Locale.FRENCH); 
  date = df2.parse("09-oct-08"); 
  </code></pre>
  
  <p>This gives me : java.text.ParseException: Unparseable date: "09-oct-08" </p>
  
  <p>And if I then try to log : </p>
  
  <pre><code>df2.format(new Date()); 
  </code></pre>
  
  <p>I get : 28-oct.-09</p>