title: How to parse date time in JavaScript
body: <p>I have Date in this format <code>mm/dd/yy</code>  example: <code>04/11/13</code>
  and time in the format <code>HH:MM:SS</code>        example: <code>17:02:30</code></p>
  
  <p>I have to parse above two values and put in a variable <code>dateTime</code> with following format</p>
  
  <pre><code>YYYY-MM-DDTHH:MM:SSS
  
  2013-04-11T17:02:30.000
  </code></pre>
  
  <p>What is best way to do it in AngularJS or in Javascript. I also need to verify the user input and make sure it is a valid <code>mm/dd/yy</code> date and a valid <code>HH:MM:SS</code> time</p>
  
  <p>I know there are tons of duplicate/similar questions but I couldn't find one which answers above, please let me know if you found one.</p>