Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
javascript date + 1

How do I take today's date and add 1 day to it?

If possible, inline please?

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

This will get tomorrow's date:

var a = new Date((new Date()).valueOf() + 1000*3600*24);
over 4 years ago · Santiago Trujillo Denunciar

0

You have to use the getDate() and setDate() methods of the Date object which respectively get and set the day value of the date.

var date = new Date();
date.setDate(date.getDate() + 1);

Check the MDC Date object reference for more information on working with dates

over 4 years ago · Santiago Trujillo Denunciar

0

Try this:

//create the date
var myDate = new Date();

//add a day to the date
myDate.setDate(myDate.getDate() + 1);
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda