Hi I am trying to calculate 2 dates in YYYY-MM-DD format, the second date must be one month later, I have the following codes;
$valdatestart = date("Y-m-d");
$valdateend = mktime(0, 0, 0, date("m")+1, date("d"), date("Y"));
My question is how do I convert $valdateend into a YYYY-MM-DD format.
Thanks . . .