4
I’m mounting a date to be displayed in an input, this will be today’s date less a day, but I need only the date and is showing me Date and Time, how can I do?
What I got 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);
Cara, bacana! + 1... I just wanted to know if it has support for all browsers. It would be interesting to put this information.
– Wallace Maxters