title: Format the date & time based on the chosen date
body: <p>I've an input field(HTML5) to choose a date.
  How do I get, the date &amp; time both from that field to be saved in the variable 'myDate' in the format - Apr 18, 2017 3:25:00 PM ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Choose a date:
  &lt;input type="date" id="myDate" placeholder="Choose your date"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here's my code -</p>