Date and time of the next and previous day in JS (Java Script)

Can we retrieve the date and time of the next and previous day? If no, explain the reason. If yes, retrieve the day and date of next day and previous day in the following format. For example, Tue Apr 19 2022 08:19:34) or it can be as 19/04/2022.

Suppose today is 6/5/2022, then the output will be looks as mentioned in the output below;

Output

5/5/2022

7/5/2022