from hour string to full time 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];