$today = getdate(); $startDate = strtotime('2025-12-25'); $diff = abs($startDate - $today[0]); $days_until = floor(($diff / (60*60*24))); echo $days_until;