J
|
Jane 3/3/2008 |
Hi, |
R
|
rainerwolf author 3/3/2008 |
Hi, you need to convert entered value to correct format in the Before record added/Before record updated events on the Events tab. |
R
|
rainerwolf author 3/3/2008 |
|
R
|
rainerwolf author 3/3/2008 |
Jane, |
J
|
Jane 3/3/2008 |
Rainer, if (strpos($values["FieldName"],".")) { $arr = explode(".",$values["FieldName"]); $day = $arr[0]; $month = $arr[1]; $year = $arr[2]; if (strlen($arr[2])==2) $year = "19".$arr[2]; $str = $day.".".$month.".".$year; } else { $day = substr($values["FieldName"],0,2); $month = substr($values["FieldName"],2,2); $year = substr($values["FieldName"],4); $str = $day.".".$month.".".$year; } |
R
|
rainerwolf author 3/3/2008 |
Rainer, here is a sample:
|
J
|
Jane 3/4/2008 |
Rainer, if ($values["Geburtsdatum"]) if (strpos($values["Geburtsdatum"],".")) { ... } |
R
|
rainerwolf author 3/4/2008 |
Rainer, check value of Geburtsdatum before:
|
J
|
Jane 3/4/2008 |
Hi, |