public function setActiveTo($ActiveTo) { if ($ActiveTo == '0000-00-00 00:00:00') { $ActiveTo = $_SESSION['VARIABLES']['EnvPro']['activeTo']; } if ($ActiveTo == '') { $ActiveTo = '0000-00-00 00:00:00'; } $date = new Fecha($ActiveTo, true); $this->ActiveTo = $date->getFechaTime(); unset($date); }