I'm setting a date to be displayed in an input, this will be today's date minus one day, but I need only the date and you're showing me Date and Time, how can I do it?
What I have so far is this:
var Hoje = new Date(); Hoje.setDate(Hoje.getDate() - 1); var Today = Hoje.toLocaleString(); var Today = Today.replace(new RegExp("/", 'g'),"-" ); editors['DataIndice'].setValue(Today);