Compare Date & Time Javascript
<p>Ok I cant get my head round this, ive looked at so many posts on SF but cant figure it out.</p>

<p>I need to compare two dates &amp; times, start and end.
If end is great then alert();</p>

<p>Works in Chrome but not IE(9)
(format is: 01-Jan-2013 10:00)</p>

<pre><code>var stDate = new Date(date +" "+ start);
var enDate = new Date(dateEnd + " "+ end);

        if ( Date.parse ( enDate ) &gt; Date.parse ( stDate ) ) {
            alert('on no');
        }
</code></pre>

<p>Please help, im stuck...</p>
