Yii Framework Forum: Ubah Format Tanggal Pada Cgridview - Yii Framework Forum

Jump to content

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

Ubah Format Tanggal Pada Cgridview Rate Topic: -----

#1 User is offline   ibrahim 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-August 13

Posted 28 August 2013 - 06:43 AM

Para Master, bagaimana mengubah format tanggal pada CgridView (database pakai Mysql) kedalam format Indonesia berikut dengan pencariannya


Tq
0

#2 User is offline   kalion 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 31-July 13

Posted 04 September 2013 - 11:11 AM

        array('name'=>'shipment', 'header'=>'Last Shipment','type'=>'raw',
        'value'=>'($data[shipment]!=="None") ? date_format(new DateTime($data["shipment"]), "d F Y") : "None"',
        'htmlOptions'=>array('class'=>'span2')
        ),



itu gan pake date_format, itu ane pake CArrayDataProvider makanya pake $data["shipment"], tapi kalo pake CActiveDataProvider pakenya seperti biasa $data->shipment

View Postibrahim, on 28 August 2013 - 06:43 AM, said:

Para Master, bagaimana mengubah format tanggal pada CgridView (database pakai Mysql) kedalam format Indonesia berikut dengan pencariannya


Tq

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