extract time from datetime jquery code example
Example 1: javascript make new date from hour
// Like Fri, 26 Sep 2014 18:30:00 GMT
var today = new Date();
var myToday = new Date(today.getFullYear(), today.getMonth(), today.getDate(), 0, 0, 0);
Example 2: javascript extract hour from string
var date = '28/05/2011 12:05';
var hrs = date.split(' ')[1].split(':')[0];