Hi @sarjoon ,
You can modify the below script,
JavaScript Code activity:
vars.startDate = '01/20/2024';
vars.endDate = '05/22/2024';
vars.currentDate=formatDate(getCurrentDate(), '%2M/%2D/%4Y');
if(vars.startDate < vars.currentDate && vars.currentDate < vars.endDate)
{
vars.eligible = "yes";
}
else{
vars.eligible = "no";
}
Test Activity:
vars.eligible == "yes"