<?php  defined('C5_EXECUTE') or die("Access Denied.");
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
$page = Page::getCurrentPage();
$date = Core::make('helper/date')->formatDate($page->getCollectionDatePublic(), true);
$user = UserInfo::getByID($page->getCollectionUserID());
?>
<div class="ccm-block-page-title-byline">
    <h1 class="page-title"><?=h($title)?></h1>

    <span class="page-date">
    <? print $date; ?>
    </span>

    <? if (is_object($user)): ?>
    <span class="page-author">
    <? print $user->getUserDisplayName(); ?>
    </span>
    <? endif; ?>

</div>
<?php  defined('C5_EXECUTE') or die("Access Denied.");
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
$page = Page::getCurrentPage();
$date = $dh->formatDate($page->getCollectionDatePublic(), true);
$user = UserInfo::getByID($page->getCollectionUserID());
?>
<div class="ccm-block-page-title-byline">
    <h1 class="page-title"><?=h($title)?></h1>

    <span class="page-date">
    <? print $date; ?>
    </span>

    <? if (is_object($user)): ?>
    <span class="page-author">
    <? print $user->getUserDisplayName(); ?>
    </span>
    <? endif; ?>
</div>

Use previously declared date helper
Use previously declared date helper