@@ 958-968 (lines=11) @@ | ||
955 | * @param $stringDate |
|
956 | * @return string |
|
957 | */ |
|
958 | function smallworld_euroToUsDate($stringDate) |
|
959 | { |
|
960 | if (0 != $stringDate || '' != $stringDate) { |
|
961 | $theData = explode('-', trim($stringDate)); |
|
962 | $ret = $theData[2] . '-' . $theData[1] . '-' . $theData[0]; |
|
963 | ||
964 | return $ret; |
|
965 | } |
|
966 | ||
967 | return '1900-01-01'; |
|
968 | } |
|
969 | ||
970 | /* |
|
971 | * Return date format (DD-MM-YYYY) for display |
|
@@ 979-989 (lines=11) @@ | ||
976 | * @param $stringDate |
|
977 | * @return string |
|
978 | */ |
|
979 | function smallworld_UsToEuroDate($stringDate) |
|
980 | { |
|
981 | if (0 != $stringDate || '' != $stringDate) { |
|
982 | $theData = explode('-', trim($stringDate)); |
|
983 | $ret = $theData[2] . '-' . $theData[1] . '-' . $theData[0]; |
|
984 | ||
985 | return $ret; |
|
986 | } |
|
987 | ||
988 | return '01-01-1900'; |
|
989 | } |
|
990 | ||
991 | /** |
|
992 | * @return array |