title: PHP check if the dates are in current week
body: <p>I am using WordPress as my CMS. 
  I am trying to check if some of my user has a birthday in current week. 
  with no success. </p>
  
  <p>Here is my code </p>
  
  <pre><code>$fd = date("Y-m-d",strtotime('monday this week')); 
  $ld = date("Y-m-d",strtotime("sunday this week"));
  
  $cdate = date('m-d',time()); 
  if (($cdate &gt;= $fd)  &amp;&amp; ($cdate &lt;= $ld)) {
  echo 'true';
  } else {
  echo 'false';
  }
  </code></pre>
  
  <p>This is returning false for me 
  If  i use</p>
  
  <pre><code>  'm-d' in $cdate variable 
  </code></pre>
  
  <p>It works fine if is use Y-m-d 
  but in that case , the years should be same which isnt possible as all the people have different birth years</p>