How Do i change the seperate character on the date / time formatter?
<?php echo Yii::app()->getDateFormatter()->formatDateTime($data->created, 'long', 'short');?>
How Do i change the seperate character on the date / time formatter?
<?php echo Yii::app()->getDateFormatter()->formatDateTime($data->created, 'long', 'short');?>
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…