title: Display the post date in title in Wordpress
body: <p>I am very new in WP, I want to change the title display on the portal to show also the post date in brackets using a filter ? how can I do it ?
  when I try this (solution of @Dre) ; I get also date with the top menu:</p>
  
  <pre><code>function my_add_date_to_title($title, $id) {
      $date_format = get_option('date_format');
      $date = get_the_date($date_format, $id); // Should return a string
      return $title . ' (' . $date . ')';
  }
  add_filter('the_title','my_add_date_to_title',10,2);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/5pvJS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5pvJS.png" alt="enter image description here"></a></p>