You can do this by implementing template_preprocess_page_title() hook in your Theme (THEME_NAME.theme
). Check example below:
/**
* Implements hook_preprocess_HOOK() for page templates.
*/
function [THEME_NAME]_preprocess_page_title(&$variables) {
// Check if page is node page, and is instance of Node.
if (($node = \Drupal::routeMatch()->getParameter('node')) && ($node instanceof \Drupal\node\NodeInterface)) {
// Get created time of Node and convert to human readable, and append Node title.
$variables['title'] = '<span class="created-date">' . date("d m Y", $node->created->getValue()[0]['value']) . "</span> " . $node->getTitle();
}
}
Similar question is answered by @Linus's here.