From fd9f449c91f91130eb92593fac2e049fba5071ec Mon Sep 17 00:00:00 2001 From: cmaffio Date: Mon, 28 Aug 2017 09:44:11 +0200 Subject: [PATCH] riorganizzazione --- core/function.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/function.php b/core/function.php index ed61c8d..1892566 100755 --- a/core/function.php +++ b/core/function.php @@ -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]; +} + ?>