I got this code from script.php this code for enddate but this code display number days and me im search for displays date end
exmple: code display 30 days expire
and me im search display 18/02/2018 expire
public function days($enddate)
{
$now = time();
$your_date = strtotime($enddate);
$datediff = $your_date - $now;
$rem = floor($datediff / (60 * 60 * 24));
return ($rem <= 0 ? 0 : $rem);
}