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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -