title: javascript - compare dates in different formats
body: <p>I have 2 dates which I need to compare to see if one is greater than the other but they are in different formats and I'm not sure of the best way to compare the 2.</p>
  
  <p>The formats are:</p>
  
  <p><code>1381308375118</code> (this is var futureDate)</p>
  
  <p>which is created by </p>
  
  <p><code>var today = new Date(); today.setHours(0, 0, 0, 0); var futureDate = new Date().setDate(today.getDate() + 56); //56 days in the future...</code></p>
  
  <p>And the other format is</p>
  
  <p><code>2013/08/26</code></p>
  
  <p>Any ideas how I can compare the 2?</p>