Thanks John!
I am looking for default date value appear in the input form when in the add input page. I made some changes on your example
$crud = new grocery_CRUD();
....
if( $crud->getState() == 'add' ) { //add these only in add form
$crud->set_css('assets/grocery_crud/css/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS);
$crud->set_js('assets/grocery_crud/js/jquery_plugins/config/jquery.datepicker.config.js');
}
$crud->callback_add_field('date',array($this,'_add_default_date_value'));
....
$output = $crud->render();
function _add_default_date_value(){
$value = !empty($value) ? $value : date("d/m/Y");
$return = '<input type="text" name="date" value="'.$value.'" class="datepicker-input" /> ';
$return .= '<a class="datepicker-input-clear" tabindex="-1">Clear</a> (dd/mm/yyyy)';
return $return;
}
It works!