problem with dates



echo date(“Y-m-d”, strtotime(“next year”, mktime($domain_data)));
$domain_data= $_SESSION[‘renew_domain’];
$_SESSION[‘renew_domain’]= date from database ( 2018.06.22)

my output is 2019.06. 13 - for some reason the day is changed to 13( all of the dates). Its always 13
Any ideas?


What is the value of $domain_data


[php]$domain_date = DateTime::createFromFormat(‘Y-m-d’, $domain_data);
$expires = $domain_date->modify(’+1 year’);
echo $expires->format(‘Y-m-d’);[/php]


Thank you dude its working fine. I allready find other solution before you respond, but I will keep in my notes. Thank you for your respond