Hi,
I’m using the extension CJuiDateTimePicker to select, start and end dates in one of my forms.Can anyone tell how can I set the date range for this…
Hi,
I’m using the extension CJuiDateTimePicker to select, start and end dates in one of my forms.Can anyone tell how can I set the date range for this…
this should do it
$this->widget('CJuiDateTimePicker',array(
'model'=>$news, //Model object
'attribute'=>'eventDate', //attribute name
'mode'=>'datetime' //use "time","date" or "datetime" (default)
'options'=>array('{ minDate: -20, maxDate: "+1M +10D" }') // jquery plugin options
));
Thanks for your reply…But i need something like this…
there can be two dates, start date and end date…from them if select a date and time for start date, then the end date must be validate that, it can only choose the dates following from start date…