public function NHSDate($attribute, $empty_string = '-') { if ($value = $this->getAttribute($attribute)) { return Helper::convertMySQL2NHS($value, $empty_string); } }