. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Date; use Fisharebest\Webtrees\Tree; /** * CHANGE_DATE := {Size=10:11} * * The date that this data was changed. */ class ChangeDate extends AbstractElement { /** * Display the value of this type of element. * * @param string $value * @param Tree $tree * * @return string */ public function value(string $value, Tree $tree): string { $canonical = $this->canonical($value); $date = new Date($canonical); return $date->display(false); } }