0
I have this code in javascript and I would like to edit its layout, but I do not know how to do (or do not remember) if you can help me showing examples I would appreciate.
<script>
function lastModified() {
var modiDate = new Date(document.lastModified);
var showAs = modiDate.getDate() + "-" + (modiDate.getMonth() + 1) + "-" + modiDate.getFullYear();
return showAs
}
function GetTime() {
var modiDate = new Date();
var Seconds
if (modiDate.getSeconds() < 10) {
Seconds = "0" + modiDate.getSeconds();
} else {
Seconds = modiDate.getSeconds();
}
var modiDate = new Date();
var CurTime = modiDate.getHours() + ":" + modiDate.getFullMinutes() + ":" + Seconds
return CurTime
}
Date.prototype.getFullMinutes = function () {
if (this.getMinutes() < 10) {
return '0' + this.getMinutes();
}
return this.getMinutes();
};
document.write("Ultima Atualização em: ")
document.write(lastModified() + " as " + GetTime());
document.write(" por ")
document.write("@ViewBag.usuarioLogado");
</script>