Date comparison javascript
<p>Is string comparison on the next manner reliable? In other words, how does this comparison internally works?</p>

<pre><code>var _date = new Date();
var _start_date = _date.getFullYear()+"-"+_date.getMonth()+"-"+_date.getDate()+"-"+_date.getHours+"-"+_date.getMinutes();

if( _start_date &lt; "2011-1-11-23-59")
    alert('still before the 11th of january!');
</code></pre>

<p>The above works perfectly, but how is javascript comparison works this way? I know i can calculate based on EPOCH and or new Date(), but in my case that isn't possible.</p>
