date      = new Date('2013-02-11');
next_date = new Date(date.setDate(date.getDate() + 1));

here's a demo http://jsfiddle.net/MEptb/

Answer from Sanjay Kamaruddin on Stack Overflow
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Date
Date - JavaScript | MDN
YYYY is the year, with four digits (0000 to 9999), or as an expanded year of + or - followed by six digits. The sign is required for expanded years. -000000 is explicitly disallowed as a valid year. MM is the month, with two digits (01 to 12). Defaults to 01. DD is the day of the month, with two digits (01 to 31).
๐ŸŒ
DEV Community
dev.to โ€บ lavary โ€บ how-to-add-days-to-a-date-in-javascript-without-a-library-3795
How to add days to a date in JavaScript (without a library) - DEV Community
February 5, 2023 - To add a few days to a date in JavaScript, you need to use setDate() on the Date object and increment the current day of the month by one or more days.
๐ŸŒ
Day.js
day.js.org โ€บ docs โ€บ en โ€บ display โ€บ format
Format ยท Day.js
dayjs().format() // current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00' dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]') // 'YYYYescape 2019-01-25T00:00:00-02:00Z' dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
๐ŸŒ
LabEx
labex.io โ€บ tutorials โ€บ javascript-add-date-by-days-in-javascript-28123
Add Date by Days in JavaScript
Use Date.prototype.getDate() and Date.prototype.setDate() to add n days to the given date. Use Date.prototype.toISOString() to return a string in yyyy-mm-dd format.
๐ŸŒ
Acrobatusers
answers.acrobatusers.com โ€บ Add-days-date-European-dd-mm-yyyy-q122650.aspx
Add days to date (European dd/mm/yyyy) (JavaScript)
*/ /* 24 hours / day; 60 min / ... new Date(num); /* Put the input date plus 1 days using util.printd into InputDate7 */ this.getField("InputDate7").value =util.printd("dd/mm/yyyy", d2); /* Add one day to Date1....
Find elsewhere
๐ŸŒ
MSR
rajamsr.com โ€บ home โ€บ how to add days to date in javascript with 3 examples
How to Add Days to Date in JavaScript With 3 Examples | MSR - Web Dev Simplified
January 18, 2024 - With this approach, you can add one day to a date by changing the numberOfDaysToAdd variable value to 1. To add 30 days to the date, you can change the numberOfDaysToAdd value to 30.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ How-to-add-number-of-days-to-JavaScript-Date
How to add number of days to JavaScript Date?
<!DOCTYPE html> <html> <head> <title>Example- add number of days to the Date object</title> </head> <body> <h2> Add Number of days to the JavaScript Date object using setDate( ) method </h2> <p> Click on the button to add 2 days to the current date/time.</p> <button onclick="add()">Click ...
๐ŸŒ
Tutorial Republic
tutorialrepublic.com โ€บ faq โ€บ how-to-add-days-to-current-date-in-javascript.php
How to Add Days to Current Date in JavaScript
Topic: JavaScript / jQueryPrev|Next ยท You can simply use the setDate() method to add number of days to current date using JavaScript. Also note that, if the day value is outside of the range of date values for the month, setDate() will update ...
๐ŸŒ
Tutorial Republic
tutorialrepublic.com โ€บ faq โ€บ how-to-format-javascript-date-as-yyyy-mm-dd.php
How to Format JavaScript Date as YYYY-MM-DD
// Create a date object from a ...ng("default", { day: "2-digit" }); // Generate yyyy-mm-dd date string var formattedDate = year + "-" + month + "-" + day; console.log(formattedDate); // Prints: 2022-05-04 ยท Here are some more ...
๐ŸŒ
TutorialsTeacher
tutorialsteacher.com โ€บ javascript โ€บ javascript-date
JavaScript Date: Create, Convert, Compare Dates in JavaScript
var date1 = new Date("February 2015-3"); var date2 = new Date("February-2015-3"); var date3 = new Date("February-2015-3"); var date4 = new Date("February,2015-3"); var date5 = new Date("February,2015,3"); var date6 = new Date("February*2015,3"); var date7 = new Date("February$2015$3"); var date8 = new Date("3-2-2015"); // MM-dd-YYYY var date9 = new Date("3/2/2015"); // MM-dd-YYYY
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ how-to-add-days-to-date-in-javascript
How to Add Days to Date in JavaScript? | GeeksforGeeks
August 13, 2024 - To add a specific number of days to a date, we first convert the days into milliseconds and then add them to the current date represented in milliseconds. This approach enables precise date manipulation in JavaScript.
๐ŸŒ
Bobby Hadz
bobbyhadz.com โ€บ blog โ€บ javascript-format-date-dd-mm-yyyy
How to Format a Date as DD/MM/YYYY in JavaScript | bobbyhadz
If you also need to include the time components, check out my other article: Format a Date as YYYY-MM-DD hh:mm:ss in JavaScript. You can also use the date-fns module to format a date as DD/MM/YYYY. First, make sure you have the module installed.
๐ŸŒ
Bugfender
bugfender.com โ€บ blog โ€บ javascript-date-and-time
The Definitive Guide to JavaScript Date and Time | Bugfender
February 18, 2025 - const date = new Date(); const day = date.getDate(); const month = date.getMonth() + 1; // The month index starts from 0 const year = date.getFullYear(); let currentDate = `${day}/${month}/${year}`; console.log(currentDate); // 10/9/2023 ...
๐ŸŒ
date-fns
date-fns.org
date-fns - modern JavaScript date utility library
date-fns provides the most comprehensive yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
๐ŸŒ
W3Schools
w3schools.com โ€บ js โ€บ js_date_formats.asp
JavaScript Date Formats
The ISO 8601 syntax (YYYY-MM-DD) is also the preferred JavaScript date format: const d = new Date("2015-03-25"); Try it Yourself ยป ยท The computed date will be relative to your time zone. Depending on your time zone, the result above will vary between March 24 and March 25. ISO dates can be written without specifying the day (YYYY-MM):
๐ŸŒ
W3Resource
w3resource.com โ€บ javascript-exercises โ€บ javascript-basic-exercise-3.php
JavaScript: Display the current date in various format - w3resource
let today = new Date(); let dd = today.getDate(); let mm = today.getMonth()+1; const yyyy = today.getFullYear(); if(dd<10) { dd=`0${dd}`; } if(mm<10) { mm=`0${mm}`; } today = `${mm}-${dd}-${yyyy}`; console.log(today); today = `${mm}/${dd}/${yyyy}`; ...