title: Get date from HTML datepicker and send to JS script
body: <p>I want to send the date and time set in an HTML form to a js script (different page). However, I'm a noob and don't know how xD
  What I've tried so far is sending the date and time (from two inputs) to the same page, triggering PHP code, setting a cookie containing the two values (this works).</p>
  
  <p>How would I get this data and set it into a js function? </p>
  
  <p>Is the date and time even in the correct format? if no, how would I fix this?</p>
  
  <p>Thanks in advance guys!</p>