. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Date; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Services\LocalizationService; use Fisharebest\Webtrees\Tree; use function app; use function date; use function e; use function preg_replace_callback; use function strtoupper; use function view; /** * DATE_VALUE := {Size=1:35} */ class DateValueToday extends DateValueExact { /** * Create a default value for this element. * * @param Tree $tree * * @return string */ public function default(Tree $tree): string { return strtoupper(date('d M Y')); } }