<?php echo Yii::app()->getDateFormatter()->formatDateTime($data->created, 'long', 'short');?>
Page 1 of 1
DateTImeFormatter seperate character ?
#1
Posted 15 March 2010 - 06:23 AM
How Do i change the seperate character on the date / time formatter?
#3
Posted 15 March 2010 - 09:56 PM
How to set this? Something like
Does not work..
<?php
Yii::app()->format->datetimeFormat = 'Y-m-d h:i:s A';
echo Yii::app()->getDateFormatter()->formatDateTime($data->created, 'short', 'short');
?>Does not work..
Share this topic:
Page 1 of 1

Help













