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
Page 1 of 1
Date And Datetime
#2
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
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
Share this topic:
Page 1 of 1