I want to use the dayjs JavaScript library or pure JavaScript to calculate next dues date (two weeks) from now and print it out on the screen. What I mean is that, an event is happening today and the next date it will happen is two weeks from today. Whenever the event happens, I will say the next event date is the two weeks' date. I am stuck after the little effort I have made so far with the code below. I will appreciate some help.
let today_event = dayjs();
today_event.format();
function eventDate()
{
console.log(`${today_event}`) //prints out today's date as I test it with this
}
eventDate(); //To call the function
That is what I have done so far trying to create a function for it. Now, I am stuck on how to go further and calculate a future date from the current date. Maybe, I am not even going about it the right way. So, I will appreciate every help.