javascript - Split Date Wed Jan 27 2016 02:14:05 GMT+0200 (GTB Standard Time) -


i have date (wed jan 27 2016 02:14:05 gmt+0200 (gtb standard time) , want split in order take hours (02:14:05). how can that?

thank you

var date = new date('wed jan 27 2016 02:14:05 gmt+0200 (gtb standard time)');  var time = ('0' + date.gethours()).slice(-2) + ':' +    ('0' + date.getminutes()).slice(-2) + ':' +    ('0' + date.getseconds()).slice(-2);    console.log(time);


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -