Im Having A Slight Issue Of The Output Of This Below
The Expiry Date In My Database Is 2017-12-02 06:32:46
But The Code Below Outputs It As 1969 Years, 12 Months, 18 Days
$target = strtotime("Y-m-d H:i:s", $user->getFromTable_MyId("expiry_date", "users")); //date in db = 2017-12-02 06:32:46
$today = date("now");
$difference = $target - $today;
$year = date('Y',$difference);
$month = date('m',$difference);
$days = date('d',$difference);
print $year." Years, ".$month." Months, ".$days." Days";