title: apache DateUtils: parsing a date with multiple patterns
body: <p>I want to parse a date that has different potential formats using <code>DateUtils.parseDate</code>. It seems to use the first parser, even if it should detect the difference between <code>23/10/2014</code> and <code>2014/10/23</code>. </p>
  
  <p>It actually parses the date even if it is wrong, so that I can't even catch an exception. How can I do? Is it a bug? (commons-lang3-3.3.2)</p>
  
  <p>Here is a code snippet</p>
  
  <pre><code>package snippet;
  
  import java.text.ParseException;
  import java.util.Date;
  
  import org.apache.commons.lang3.time.DateUtils;
  
  public class TestDateFormat {
  
      public static void main(String[] args) throws ParseException {
  
          Date d = DateUtils.parseDate("23/10/2014T12:34:22", 
              new String[] {"yyyy/MM/dd'T'HH:mm:ss",
                  "dd/MM/yyyy'T'HH:mm:ss"});
  
          System.out.println(d);
          //returns Tue Apr 05 12:34:22 CET 29 which is wrong
      }
  
  }
  </code></pre>