2
Hello, I am with this function, but I do not know how to put an extra day in the date, someone can help me.
var myVar = setTimeout(function(){ myTimer() });
function myTimer() {
var d = new Date();
var options = {weekday: 'long', month: 'long', year: 'numeric', day: 'numeric' }
var t = d.toLocaleDateString('pt-br', (options));
document.getElementById("demo").innerHTML = t;
}
My string type can be considered different?
– Léo Cunha
Hello Leo, where exactly is this string? The part of adding one day or more is well explained in the question that Linkei, don’t you agree? The string you refer to is coming from the server?
– Guilherme Nascimento
I’m starting now, I thought this question and the answers are easier, and the string I say and the way it is displayed on the screen. " Saturday, 1 de July, 2017".
– Léo Cunha
But your question does not talk about how to display on the screen and neither do the answers of Renan and Matthew speak of this, in fact your code already does the display part, the doubt only seems even about "add", if it is for a detail or other almost every question I ask that has a
;
different would no longer be duplicate, don’t you agree? ;) ... Now if your problem is also to display, this would have to be described in the body of the question, does not agree?– Guilherme Nascimento
I agree, but that question will be erased?
– Léo Cunha
Leo duplicates are not banned questions or evil or anything, are closed only to prevent receiving answers and avoid decentralizing the subject and are still linked to the main question which is great to help users search for various answers in the different questions. There’s nothing to worry about.... I highly recommend reading this link: https://pt.meta.stackoverflow.com/a/2676/3635 ;D
– Guilherme Nascimento
Vlw, very beginner yet, rsrsrs
– Léo Cunha