/** * Returns date * * @return mixed */ public function getValue() { if (strlen($this->value) > 0) { return DateTime::createFromFormat($this->format, $this->value); } return $this->value; }
/** * @internal */ public function parseDate($phpMask, $value) { return Nette\DateTime::createFromFormat($phpMask, $value); }