title: If new Date is less than date stored in variable
body: <p>I am just wondering how I can compare a date with the following code:</p>
  
  <pre><code>var today = new Date();
  </code></pre>
  
  <p>Outputs the current day like so:</p>
  
  <pre><code>Wed Feb 24 2016 12:02:34 GMT+0000 (GMT Standard Time)
  </code></pre>
  
  <p>However if I have a variable containing a string like so:</p>
  
  <pre><code>var end = "Tue Mar 1 2016 00.00.00 GMT+0000 (GMT Standard Time)";
  </code></pre>
  
  <p>I am unable to compare these two variables in an if statement using the greater than operator because the <code>end</code> variable is a string.</p>
  
  <p>So I am just wondering how I can compare a set date in a variable with my today variable?</p>
  
  <p>Thanks, Nick</p>