Panel page title with date field I have a panel page with title set to %node:field_pub_year from substitution list. field_pub_year is a date field which is to select publication year. My problem is this is displaying whole date like '2012-01-01 00:00:00' as title. Is it possible to show only '2012' as title. 

Thank you.
In theme_preprocess_page hook

    // CIsSharp, 07/23/2013: For 'projects' page, only display year as title
    if (isset($variables['node'])) {
        if (isset($variables['node']-&gt;type) &amp;&amp; $variables['node']-&gt;type == 'projects' &amp;&amp;
            isset($variables['node']-&gt;field_pub_year)) {
          $date = strtotime($variables['node']-&gt;field_pub_year[LANGUAGE_NONE][0]['value']);
          $year = date('Y', $date);
          $title = $year . ' Project';
          drupal_set_title($title);

          // Because breadcrumb creation executes before preprocess
          // Fix breadcrumbs title also
          $crumbs = drupal_get_breadcrumb();
          if (count($crumbs) &gt; 0) {
             $crumbs[count($crumbs) - 1] = $title;
             drupal_set_breadcrumb($crumbs);
          }
      }
   }