To achieve this, we use the Date object and create an instance of it. After that by using the setDate() method, we increase one date to the present date. Now by using the getDate() method you will get tomorrow’s date. Now to convert that date to the string we use the string template literals, getFullYear, getMonth, padStart methods. Below is the implementation of this:
If the date is given :
"2021-01-01" "2021-03-01" "2021-05-01"
Note: Enter the date in yyyy-mm-dd format.