title: How to parse the date string like '21Jul12'
body: <p>How to parse the date string like '21Jul12'. I have tried the following way: </p>
  
  <pre><code>import org.apache.commons.lang.time._
  
  DateUtils.parseDate("21Jul12", Array("ddMMMyy"));
  </code></pre>
  
  <p>but it can't work due to the error: </p>
  
  <pre><code>java.text.ParseException: Unable to parse the date: 21Jul21
      at org.apache.commons.lang.time.DateUtils.parseDateWithLeniency(DateUtils.java:359)
      at org.apache.commons.lang.time.DateUtils.parseDate(DateUtils.java:285)
      at .&lt;init&gt;(&lt;console&gt;:20)
      at .&lt;clinit&gt;(&lt;console&gt;)
      at .&lt;init&gt;(&lt;console&gt;:11)
      at .&lt;clinit&gt;(&lt;console&gt;)
      at $print(&lt;console&gt;)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:704)
      at scala.tools.nsc.interpreter.IMain$Request$$anonfun$14.apply(IMain.scala:920)
      at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
      at scala.tools.nsc.io.package$$anon$2.run(package.scala:25)
      at java.lang.Thread.run(Thread.java:662)
  </code></pre>
  
  <p>Even I use <code>java.text.SimpleDateFormat</code>, i got a similiar exception: </p>
  
  <pre><code>java.text.ParseException: Unparseable date: "21Jul12"
      at java.text.DateFormat.parse(DateFormat.java:337)
      at .&lt;init&gt;(&lt;console&gt;:13)
      at .&lt;clinit&gt;(&lt;console&gt;)
      at .&lt;init&gt;(&lt;console&gt;:11)
      at .&lt;clinit&gt;(&lt;console&gt;)
      at $print(&lt;console&gt;)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:704)
      at scala.tools.nsc.interpreter.IMain$Request$$anonfun$14.apply(IMain.scala:920)
      at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
      at scala.tools.nsc.io.package$$anon$2.run(package.scala:25)
      at java.lang.Thread.run(Thread.java:662)
  </code></pre>