Using the Date object in JavaScript, you can easily get the date of tomorrow, today or even yesterday. Check how you can also easily format your dates with one return statement: https://www.webtips.dev/webtips/javascript/how-to-get-the-date-of-tomorrow-in-javascript