moment js subtract years

var startdate = moment();
startdate = startdate.subtract(1, "days");
startdate = startdate.format("DD-MM-YYYY");

4
7

                                    let min_date = moment().subtract(18, 'years');

4 (7 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
subtract one day from date nodejs moment how to subtract date in moment js how to substract day from date moment js moment date minus one day subtract days from current date moment node js how to subtract from current date moment substract a day from date javascript moment subtract hours moment js subtract moment js moment().subtract few days and months moment subtract duration one day moment substract 7 days moment substract 2 days from date moment js subtract 2 days subtract days from date moment how to subtract 1 day from moment js date subtract month moment js moment js subtract seconds moment subtract hours from date moment js subtract moment js subtract minutes moment substract days subtract day moment js moment subtract two days and get to to mid day subtract days from moment date in angular moment(Date.now()).subtract(, ); year moment.js subtract substract day moment js subtract 7 days from current date in moment moment js subtract month moment subtract 30 days moment().subtract moment js minus days moment js subtract dates moment js subtract day moment js subtract 1 year moment sub 2 days subtract one day from date moment moment current date minus days moment js day of week format minus day moment js moment js today minus 1 day moment#subtract days moment js subtract years from current moment js reduce day moment js minus one year moment js remove days momentjs subtract one year substract years in moment js maxdate current date minus 100 years moment moment current date minus 1 day moment().subtract(29, 'days').format('yyyy-mm-dd') momentjs minus one day date substrack years js moment momentjs subtract days sustract days from date moment angular momen minus one day moment js subtract years moment delete one day moment.js subtract month subtract days moment subtract years from date moment moment start date three month before moment.js subtract 30 days from date moment minus days moment remove days moment subtract days subtract 1 day in date moment js subtract days in moment moment js get 2 days ago moment minus day js moment js subtract days
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source