

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to add number of days to JavaScript Date?
To add the number of days, use the Date() function to display the current date and then add two days
Example
<!DOCTYPE html> <html> <body> <script> var date, incDate; date = new Date(); document.write(date); var incDate = new Date(new Date().getTime()+(2*24*60*60*1000)); document.write("<br>"+incDate); </script> </body> </html>
- Related Questions & Answers
- How to add days to $Date in PHP?
- MySQL add days to a date?
- Add 11 days to current date in MySQL
- C# DateTime to add days to the current date
- How to add a number of months to a date using JavaScript?
- How to subtract days from a date in JavaScript?
- How to subtract number of days from a date to get the previous date in R?
- How to find the date after a number of days in R?
- Java Program to add days to current date using Java Calendar
- Add 30 days to date in a MySQL table with arrival date records
- Get the number of days between current date and date field?
- How to add months to a date in JavaScript?
- MySQL Datetime to add days?
- How to get the number of days between two Dates in JavaScript?
- How to add 30 minutes to a JavaScript Date object?
Advertisements