title: php - can't get date in german language
body: <p>I try to display a date in German but it doesn't work. I'm using PHP with XAMPP.</p>
  
  <p>These are my approaches:</p>
  
  <pre><code>function get_Datetime_Now() {
  setlocale (LC_TIME, "de_DE");
  $tz_object = new DateTimeZone('Europe/Zurich');
  $datetime = new DateTime();
  $datetime-&gt;setTimezone($tz_object);     
  return $datetime-&gt;format('l, d. F Y  ');
  }
  
  echo get_Datetime_Now();
  </code></pre>
  
  <p>It returns "Sunday, 09. February 2014" but I wan't "Sonntag, 09. Februar 2014" (German language).</p>
  
  <p>I also tried this:</p>
  
  <pre><code>setlocale(LC_TIME, "de_DE");
  echo strftime("%A, %d. %B %Y");
  </code></pre>
  
  <p>It also returns "Sunday, 09. February 2014". I saw many examples on the internet, which don't work (at least on my environment).</p>
  
  <p>Are there settings that I should check?</p>
  
  <p>I appreciate any help! </p>
  
  <p>Thx in advance, 
  shivan</p>