Given a date, month, and year, write a function to add a specified number of days to the given date.

AnswerBot
2y
Logic to add days to a given date
Convert date, month, year to a date object
Use date object's built-in method to add days
Convert the updated date object back to date, month, year format
Help your peers!
Add answer anonymously...
Paytm Senior Software Engineer interview questions & answers
A Senior Software Engineer was asked 5mo agoQ. What are the best and worst solutions for the coding problem "Longest Substring ...read more
A Senior Software Engineer was asked 9mo agoQ. Given n non-negative integers representing an elevation map where the width of e...read more
A Senior Software Engineer was asked 9mo agoQ. Describe how you would design a system for a chat application.
Popular interview questions of Senior Software Engineer
A Senior Software Engineer was asked 5mo agoQ1. What are the best and worst solutions for the coding problem "Longest Substring ...read more
A Senior Software Engineer was asked 9mo agoQ2. Given n non-negative integers representing an elevation map where the width of e...read more
A Senior Software Engineer was asked 9mo agoQ3. What is Kafka, and what use cases have you encountered where you have used it?
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

