title: Returning a date format from an unknown format of date string in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3389348/parse-any-date-in-java">Parse any date in Java</a>  </p>
  </blockquote>
  
  
  
  <p>Suppose we have a string of date in a format (unknown to the user). Examples of acceptable dates that you can receive from a user:</p>
  
  <ul>
  <li><code>yyyy-MM-dd</code>/<code>yy-MM-dd</code></li>
  <li><code>yyyy/MM/dd</code>/<code>yy/MM/dd</code></li>
  <li><code>dd/MM/yyyy</code>/<code>dd/MM/yy</code></li>
  <li><code>MM/dd/yyyy</code>/<code>MM/dd/</code>yy`</li>
  </ul>
  
  <p>Is there a library that accept a date in a string and returns a date format that can be used by <code>SimpleDateFormat</code> or Joda Time?</p>
  
  <p>Thanks</p>