private function filters($value, $type = null, $safe = true) {
            if ($type == "date") {
                $ret = $this->convertDate($value, false);
                return $ret;
            }
            if ($type == "datetime-local") {
                return $ret = strtotime($value);
            }
            if ($type == "date_string") {
                return date("Y-m-d", \AsyncWeb\Date\Time::getUnix($this->convertDate($value, false)));
            }
            if ($type == "number") {
                $value = str_replace(" ", "", $value);
                $value = str_replace(",", ".", $value);
            }
            if (!$safe) {
                if (($val = $this->execute($value)) !== false) {
                    return $val;
                }
            }
            return $value;
        }