0

I have installed the INTL in my apache with Yosemite OSX enter image description here

In my database, set the Date enter image description here

But in my View this date doesn't show, why?

<?php 
        echo $this->dateFormat($post['post_date'], \IntlDateFormatter::SHORT, \IntlDateFormatter::SHORT, 'en_US');
      ?>

enter image description here

what am I doing wrong?

user2227682
  • 73
  • 1
  • 2
  • 8
  • What is `$post['post_date']` in this case? Did you try `echo($post['post_date']);` already, maybe it is empty? – Wilt Jul 28 '15 at 09:03
  • Date must be one of described value params [here](http://php.net/manual/de/intldateformatter.format.php#refsect1-intldateformatter.format-parameters). – danopz Jul 28 '15 at 11:48
  • `$post['post_date']` this may be a `DateTime` object, an integer representing a Unix timestamp value or an array in the format output by `localtime()`. http://framework.zend.com/manual/current/en/modules/zend.i18n.view.helpers.html#dateformat-helper – newage Jul 30 '15 at 14:24

0 Answers0