riorganizzazione

This commit is contained in:
cmaffio
2017-08-28 09:44:11 +02:00
parent 1ee0356a30
commit fd9f449c91

View File

@@ -673,4 +673,13 @@ class html {
}
function sistemadata ($datain) {
if ($datain == "") return "";
$pezzi = preg_split("/[\.\/-]+/", $datain);
if (strlen($pezzi[2]) == 2) {
$pezzi[2] = "20".$pezzi[2];
}
return $pezzi[0].".".$pezzi[1].".".$pezzi[2];
}
?>