01-22-2019, 01:03 PM
(01-22-2019, 12:41 PM)mudmin Wrote: 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)));
like this?
<?php echo date('Y-m-d', strtotime("+".$length=6." months", strtotime($user->data()->validity))); ?><