title: How to get year and month from a date - PHP
body: <p>How to get year and month from a given date.</p>
  
  <p>e.g.       <code>$dateValue = '2012-01-05';</code></p>
  
  <p>From this date I need to get year as <strong>2012</strong> and month as <strong>January</strong>. </p>