get hour from string javascript code example
Example: javascript extract hour from string
var date = '28/05/2011 12:05';
var hrs = date.split(' ')[1].split(':')[0];
var date = '28/05/2011 12:05';
var hrs = date.split(' ')[1].split(':')[0];