Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
$date1 = new DateTime("2023-07-24"); $date2 = new DateTime("2023-12-12"); $diff = $date1->diff($date2); $months = ($diff->y * 12) + $diff->m; echo $months; /* run: 4 */