soopers Posted September 12, 2014 Share Posted September 12, 2014 I am using this extension and it works good. but when I change the date then as it is updated in the database, but on the gridview field it is not displaying.I am using beforeSave() and afterFind() methods of yii in my model. as bellow protected function beforeSave() { if (parent::beforeSave()) { if ($this->isNewRecord) { $this->dob= date('Y-m-d', strtotime($this->dob)); return true; } else { $this->dob= date('Y-m-d', strtotime($this->dob)); return true; } } else return false; } protected function afterFind() { if (strtotime($this->dob) != 0) $this->dob= XHtml::formatDate($this->dob); else $this->dob= ''; return TRUE; } So how can I solve my problem.Also the datepicker range is from 2004-2024 is the issue that how to increase this range. Link to comment Share on other sites More sharing options...
Larry Posted September 12, 2014 Share Posted September 12, 2014 I've not used that extension before. You may have more luck using the Yii forums. Link to comment Share on other sites More sharing options...
Recommended Posts