$taskDate = ’10/12/2022′; $taskStatus = ‘סגורה’; $currentDate = date(‘d/m/Y’);
if (strtotime($taskDate) < strtotime($currentDate) && $taskStatus !== 'סגורה') { return 'true'; } else { return ''; }