Yii Framework Forum: Date And Datetime - Yii Framework Forum

Jump to content

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

Date And Datetime Rate Topic: -----

#1 User is offline   Adrian Noble 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 13-December 11

Posted 26 February 2013 - 02:23 PM

I have been trying to get a date time entry working and I only get a date selection tool. I checked the source for AAFieldDateTime and found that its type is 'date' exactly the same as AAFieldDate. Is this correct? If so, how do I enter a time in a form?
Thanks,

Adrian
0

#2 User is offline   Girish Awate 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 23-January 13
  • Location:Mumbai

Posted 26 February 2013 - 02:50 PM

hi
why don't you try using extension something as follows in your view

<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker',array(
'model'=>$news, //Model object
'attribute'=>'eventDate', //attribute name
'mode'=>'datetime' //use "time","date" or "datetime" (default)
'options'=>array() // jquery plugin options
));
?>

regards
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