title: How to extract date from string using javascript
body: <p>How does one extract a date from a string using javascript? It can be in the following formats:</p>
  
  <p>31.07.2014</p>
  
  <p>07.31.2014</p>
  
  <p>2014.07.31
  the same format but divided by spaces or / or -
  31 07 2014
  31/07/2014
  31-07-2014</p>
  
  <p>the string may contain other character like </p>
  
  <p>Teen.Wolf.S04E06.Orphaned.28.07.2014.HDTV</p>
  
  <p>so how to extract date from these type of name.</p>
  
  <p>I thought of first extracting all the numbers and then comparing if it is greater than 12 to make sure it is month or date.
  I don't know much about regEx (Regular Expressions) so if it is used please explain a little thank you</p>