I'm trying to retrieve all the tasks that are scheduled for the coming week.
I might be doing it totally wrong but this is what I am trying so far,
var dateArray = stringDate.split('/');
const taskDate = dateArray[0];
if(taskDate <= new Date().getDate()+7)
{
//retrieve the tasks
}
the stringDate contains the date in this format 1/5/2022