title: php - Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in C:\Users\denni\PhpstormProjects\ACNOP OOP\Main.php on line 69
body: <p>I'm trying to use the IntlDateFormatter class to format date and time strings to local (Dutch) time formats. I use the following code that I copy-pasted from <a href="https://www.simonholywell.com/post/2015/07/international-php-dates-with-intl/" rel="nofollow noreferrer">https://www.simonholywell.com/post/2015/07/international-php-dates-with-intl/</a> into my Main class:</p>
  <pre><code>$DateTime = new DateTime();
  $IntlDateFormatter = new IntlDateFormatter(
      'es_ES',
      IntlDateFormatter::FULL,
      IntlDateFormatter::FULL
  );
  echo $IntlDateFormatter-&gt;format($DateTime);
  </code></pre>
  <p>But I get the following errors:</p>
  <blockquote>
  <p>Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in C:\Users\denni\PhpstormProjects\ACNOP OOP\Main.php on line 69</p>
  <p>Error: Class 'IntlDateFormatter' not found in C:\Users\denni\PhpstormProjects\ACNOP OOP\Main.php on line 69</p>
  </blockquote>
  <p>I already tried to uncomment the line <code>;extension=php_intl.dll</code> so that it becomes <code>extension=php_intl.dll</code>, but that did not help.
  What do I need to do?
  I use PHPStorm, just in case if that is important</p>
  <p>Thanks in advance.</p>