Yii Framework Forum: DateTImeFormatter seperate character ? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

DateTImeFormatter seperate character ? Rate Topic: -----

#1 User is offline   mech7 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 220
  • Joined: 26-March 09

Posted 15 March 2010 - 06:23 AM

How Do i change the seperate character on the date / time formatter?

<?php echo Yii::app()->getDateFormatter()->formatDateTime($data->created, 'long', 'short');?>

0

#2 User is offline   Y!! 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 978
  • Joined: 18-June 09

Posted 15 March 2010 - 06:48 AM

See datetimeFormat.
0

#3 User is offline   mech7 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 220
  • Joined: 26-March 09

Posted 15 March 2010 - 09:56 PM

How to set this? Something like

<?php
        Yii::app()->format->datetimeFormat = 'Y-m-d h:i:s A';
        echo Yii::app()->getDateFormatter()->formatDateTime($data->created, 'short', 'short');
        ?>


Does not work..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users