Hello,
I'd like to echo the date 365 days from today. For example, if today's date is 2006-03-25, I'd like to echo 2007-03-25. I'm using the mktime function which gives me what I want. My problem is I don't know how to display the date as YYYY-MM-DD. My code is below. Could you please show me how to modify this code so that it displays the date as YYYY-MM-DD? Thanks a lot fr your help.
$nextyear = date('j-m-y',mktime(0, 0, 0, date("m"), date("d")+365, date("Y")));
echo $nextyear;