If you want a solution that does not yield three-digit years 2100+ you must modulo the date, accordingly you must fill with leading zero for xx00-xx09 years to not get single digit years.
This will be very important starting in 2080.
{$aktDate}\n";
}
?>