Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
fecha javascript + 1

¿Cómo tomo la fecha de hoy y le agrego 1 día?

Si es posible, en línea por favor?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Esto obtendrá la fecha de mañana:

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

0

Tiene que usar los métodos getDate() y setDate() del objeto Date que respectivamente obtienen y establecen el valor del día de la fecha.

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

Consulte la referencia del objeto MDC Date para obtener más información sobre cómo trabajar con fechas.

over 4 years ago · Santiago Trujillo Report

0

Prueba esto:

 //create the date var myDate = new Date(); //add a day to the date myDate.setDate(myDate.getDate() + 1);
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!