01-22-2019, 12:41 PM
Ok. So it will be something like this.
However you figure out the length, it needs to wind up as a 6 or 12.
$length = 6;
then
echo date('Y-m-d', strtotime("+".$length." months", strtotime($user->data()->validity)));
However you figure out the length, it needs to wind up as a 6 or 12.
$length = 6;
then
echo date('Y-m-d', strtotime("+".$length." months", strtotime($user->data()->validity)));