Split string to get hours
<pre><code>var date = '28/05/2011 12:05';
var elem = date.split('');
hours = elem[0];
</code></pre>

<p>I have the above date format, please tell me how to split this, so that I can obtain <code>12</code> (hours) from this string?</p>
