title: JavaScript - date stored in localStorage won't cooperate with functions
body: <p>I have a date stored in localStorage under the variable <code>deadline</code> (<code>Tue Jul 05 2016 18:15:00 GMT+0100 (BST)</code>) and I want to find the difference between this date and <code>new Date()</code> however any function I try to carry out with the locally stored date doesn't seem to work. </p>
  
  <p>For example if I try to carry out: <code>console.log(deadline.getTime())</code> I get the error: <code>deadline.getTime is not a function</code> but when I carry out the same function on the <code>new Date()</code> it works fine despite the syntax of the dates being exactly the same. Can anybody shed some light? Thanks.</p>