how to compare two date in the format "dd-mm-yyyy hh:mm" in jquery
<p>I have two dates 06-05-2016 13:05 and 13-05-2016 13:05. I want to compare these two date in java script.
I tried</p>

<pre><code>var dateFrom = Date.parse('06-05-2016 13:05');
alert(dateFrom);
var dateTo = Date.parse('13-05-2016 13:05'); 
alert(dateFrom);
if (dateFrom &gt; dateTo) {        
    return false;
}
</code></pre>

<p>but it always return false.</p>