title: Change php date output language
body: <p>I am using few variables to store different php dates in desired formats like following:</p>
  
  <pre><code>$today = date('Y-m-d');
  $todayPretty = date('d. M');
  $oneMonthBefore = date('Y-m-d', strtotime('-1 months'));
  $oneMonthBeforePretty = date('d. M', strtotime('-1 months'));
  $oneMonthBefore2 = date('Y-m-d', strtotime($this-&gt;oneMonthBefore .' -1 day'));
  $oneMonthBefore2Pretty = date('d. M', strtotime($this-&gt;oneMonthBefore .' -1 day'));
  $twoMonthsBefore = date('Y-m-d', strtotime('-2 months'));
  $twoMonthsBeforePretty = date('d. M', strtotime('-2 months'));
  $currentMonth = date('F');
  $previousMonth = date('F', strtotime('-1 months'));
  </code></pre>
  
  <p>Unfortunately I need them in a different language like danish for example so I've set up the following with no results:</p>
  
  <pre><code>setlocale(LC_ALL, "da_DK.UTF-8");
  </code></pre>
  
  <p>I've read that I have to use <code>strftime</code> function but how I should approach this when it comes to the variables that doesn't use <code>strtotime</code> in my case? Any help or guidance is more than welcomed.</p>