How to compare time in JS
<p>How can compare two variables in JS with value as time string in the below format</p>

<pre><code>Mon, 29 Feb 2016 09:09:53 GMT
Thu, 21 Jan 2016 05:08:46 GMT
</code></pre>

<p>Simply doing x > y will work ??? Or Do I need to convert into other format..</p>

<pre><code>strtotime()
</code></pre>

<p>above function is available in php which will parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC).</p>

<p>Is there any function to do the same in JS ??</p>