I added these lines to show and enter (add or edit) a date in German notation (dd.mm.yyyy):
$tableColumns['beginn'] = array(
'input_info' => 'size="10"',
'on_edit_fun' => array(&$this,'replaceGDate'),
'on_add_fun' => array(&$this,'replaceGDate'),
'edit_fun' => array(&$this,'replaceUDate'),
'display_mask' => 'date_format(beginn,"%d.%m.%Y")'
);
and before "protected initiateEditor()":
function replaceGDate($col,$val,$row,$instanceName)
{
if ( substr($val,2,1)=="." and substr($val,5,1)==".")
return substr($val,6,4)."-".substr($val,3,2)."-".substr($val,0,2);
else
return $val;
}
function replaceUDate($col,$val,$row,$instanceName)
{
return substr($val,8,2).".".substr($val,5,2).".".substr($val,0,4);
}