I need to display on the page the current date followed by the current time, Here's what I've done so far, I just need to display the time if I continue as is, follow code:
function dataHoje() {
var data = new Date();
var dia = data.getDate();
var mes = data.getMonth() + 1;
var ano = data.getFullYear();
return [dia, mes, ano].join('/');
}
Html:
<span class="pull-left time-label">
Running: 15/4/2016 -
I just need the time, like this: 15/4/2016 - 14:55
Can anyone help?