title: How can I parse dates in this HTML javascript page?
body: <p>I was wondering if i could get some help on trying to get this page to accept an input, then spit out whether or not it was a valid input or not.</p>
  
  <p>So far I have written this.</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
     &lt;title&gt;JavaScript Date Strings&lt;/title&gt;
  
     &lt;link rel="stylesheet" href="jsdatestrings.css" /&gt;
  
     &lt;script src="http://code.jquery.com/jquery.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;h1 id="title"&gt;JavaScript Popup and Validation&lt;/h1&gt;
  
  &lt;img class="popup-btn" src="death.jpg" /&gt;
  
  &lt;p&gt;Das Datum (mm/dd/yyyy): &lt;input id = "date" type="text" name="date"&gt;&lt;/p&gt;
  
  &lt;script&gt;
  $(document).ready(function(){
    $("input").blur(function(){
      var x = $("#date").val();
      $("#test").html(x);
    });
  });
  &lt;/script&gt;
  
  &lt;p id="test"&gt;HERRO!&lt;/p&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I am not very sure how to get it and work with it. I know the input is working but I need to get something like 09281990 and it should  give me something like 09/28/1990 and if I set it to yyyy-mm-dd then it should read it as invalid unless i put 19900928. </p>
  
  <p>Any help would be welcomed. Thank you.</p>