public function getValue() { if (!$this->check()) { return new \DateTime(sprintf('%04d-%02d-%02d', $this->value['year'], $this->value['month'], $this->value['day'])); } return null; }