Published Apr 09 2022
Psssst! The 2023 WEB DEVELOPMENT BOOTCAMP is starting on FEBRUARY 01, 2023! SIGNUPS ARE NOW OPEN to this 10-weeks cohort course. Learn the fundamentals, HTML, CSS, JS, Tailwind, React, Next.js and much more! ✨
How do you do that?
Here is a date that represents today:
const my_date = new Date()
Suppose we want to get the date that’s “30 days from now”.
We use the
getDate() methods, in this way:
my_date.setDate(my_date.getDate() + 30)