You can use the startOfTomorrow
function from date-fns library in Javascript to get a Date object representing the start of tomorrow.
Here's an example code snippet:
index.tsx176 chars5 lines
In the above code, we first import the startOfTomorrow
function from the date-fns
module. We then call the function without any argument to get a Date object representing the start of tomorrow. We then log the value of the tomorrow
date object to the console.
gistlibby LogSnag