--- class.t3lib_tceforms.php Tue Nov 14 15:31:36 2006 +++ class.t3lib_tceforms.new.php Tue Nov 14 15:37:13 2006 @@ -2467,15 +2467,19 @@ $format = trim($config['format']); switch($format) { case 'date': - $option = trim($config['format.']['option']); - if ($option) { - if ($config['format.']['strftime']) { - $value = strftime($option,$itemValue); + if ($itemValue) { + $option = trim($config['format.']['option']); + if ($option) { + if ($config['format.']['strftime']) { + $value = strftime($option,$itemValue); + } else { + $value = date($option,$itemValue); + } } else { - $value = date($option,$itemValue); + $value = date('d-m-Y',$itemValue); } } else { - $value = date('d-m-Y',$itemValue); + $value = ''; } if ($config['format.']['appendAge']) { $value .= ' ('.t3lib_BEfunc::calcAge((time()-$itemValue), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')).')';