Log 2759
10/02/2024 2024-02-10 20:47// Get the start date and end date from the placeholders
$start_date = #תאריך התחלה#;
$end_date = #תאריך סיום#;
// Extract the day, month, and year from the start and end dates
$start_day = explode(“/”, $start_date)[0];
$start_month = explode(“/”, $start_date)[1];
$start_year = explode(“/”, $start_date)[2];
$end_day = explode(“/”, $end_date)[0];
$end_month = explode(“/”, $end_date)[1];
$end_year = explode(“/”, $end_date)[2];
// Calculate the difference in years between start and end dates
$time_diff_start_end_years= abs($start_year – $end_year);
return “כמה זמן עבר בין “.$start_date.” עד “.$end_date.” בשנים: “.$time_diff_start_end_years;