title: Date not showing correct for condition
body: <p>I am creating a timesheet, where it checks for previous date.</p>
  
  <p>The condition is that the timesheet will show date of today and yesterday. If today is monday, it should show yesterday's date as friday, not sunday.</p>
  
  <p>But its not working. The code is :</p>
  
  <pre><code>$dateToday = date('d-M-Y');
  $datePrevious = date("d-M-Y", strtotime((date('D') == 'MON' ? "-3 day" : "-1 day")));
  </code></pre>
  
  <p>But its not working. Please help me where I went wrong ?</p>
  
  <p>Its showing for monday and sunday.</p>