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

153
Views
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 answers
Answer question

0

This will get tomorrow's date:

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

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 Report

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 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!