<?php

defined('C5_EXECUTE') or die('Access Denied.');
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
echo $this->controller->getOpenTag();
echo $this->controller->getTitle();
try {
    $format = (strlen($this->controller->dateFormat) ? $this->controller->dateFormat : "m/d/y");
    echo $dh->formatCustom($format, $this->controller->getContent());
} catch (\Exception $e) {
    echo $this->controller->getContent();
}
echo $this->controller->getCloseTag();

<?php

defined('C5_EXECUTE') or die('Access Denied.');
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
echo $this->controller->getOpenTag();
echo $this->controller->getTitle();
try {
    if ($this->controller->dateFormat) {
        echo $dh->formatCustom($format, $this->controller->getContent());
    } else {
        echo $dh->formatDateTime($this->controller->getContent());
    }
} catch (Exception $e) {
    echo $this->controller->getContent();
}
echo $this->controller->getCloseTag();

Use standard date/time format if none is specified in page_attribute_display block
Use standard date/time format if none is specified in page_attribute_display block
