-1
My date when it arrives midnight continues the day before, I wanted it to be for the next day (current).
For example:
At 23:50 on the 6th, he shows Saturday, 6 October 2018, 00:00
Since midnight is already the next day, I want you to stay: Sunday, 7 October 2018, 00:00
PS: I can’t program c(:
<html>
<head>
<script language="javascript" type="text/javascript">
var d = new Date();
now = new Date;
monName = new Array ("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");
dayName = new Array ("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado");
hourName = new Array (00,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,"00");
</script>
</head>
<body>
<script language="javascript" type="text/javascript">
document.write ("<center><span style='width: 50%; font-size: 18px; line-height: 24px; color: #000000;'>" + dayName [now.getDay()] + ", " + now.getDate() + " de " + monName [now.getMonth()] + " de " + now.getFullYear() + ", às " + hourName [now.getHours()+1] + ":00" + " </span></center>")
</script>
</head>
</html>
Where is the timer? I only see a date being written on the page.
– Isac
Exactly, it’s not a timer, just a date to be written, like I said, I can’t program. I just want you to stay October 7 instead of October 6, for example, when the writing arrives at midnight (00:00).
– Emmanuel Borges
Dude I believe that using a timer helps in creating this code, I’ll be leaving some steps for you to perform - Create a counter that checks the time - Add +1 to the day counter whenever the time is 00:00
– Gunblades