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

157
Views
¿Cómo agrego un día o 12 horas hasta la fecha en formato de jue 03 de marzo de 2022 12:00:00 GMT en JavaScript?

Quiero agregar un día o 12 horas a una fecha en el formato de

 Thu Mar 03 2022 12:00:00 GMT

Yo he tratado:

 new Date(value.startDate + 1);

pero no hace nada

Por favor, ayúdenme, soy nuevo en JavaScript.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Prueba esto

 const date = new Date("Thu Mar 03 2022 12:00:00 GMT"); date.setDate(date.getDate() + 1);
about 4 years ago · Juan Pablo Isaza Report

0

Si desea agregar algo a su marca de tiempo, esto funcionará sin importar lo que desee agregar.

 const timestamp = new Date("Thu Mar 03 2022 12:00:00 GMT") console.log(timestamp.toString()) // because getTime and setTime uses milliseconds: const millisecondsToBeAdded = 12 * 60 * 60 * 1000 timestamp.setTime(timestamp.getTime() + millisecondsToBeAdded) console.log(timestamp.toString())

about 4 years ago · Juan Pablo Isaza 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!