public functiongetDateField($field, $string_date) {
if ($string_date) {
return$field;
}
// Base date field storage is timestamp, so the date to be returned here is// epoch + stored value (seconds from epoch).return"DATE_ADD('19700101', INTERVAL {$field} SECOND)";
}