| Server IP : 159.223.102.202 / Your IP : 216.73.216.193 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/bottaingenieriaUep/htdocs/www.bottaingenieria.com.ar/clases/ |
Upload File : |
<?php
class Funciones{
static function fechaSQLaFechaComun($strFecha, $separadorFecha = "/", $separadorHora = ":"){
if (strlen($strFecha) > 0 and $strFecha != '' and $strFecha != '0000-00-00'){
$anio = substr($strFecha, 0, 4);
$mes = substr($strFecha, 5, 2);
$dia = substr($strFecha, 8, 2);
if (strlen($strFecha) > 10){
$hora = substr($strFecha, 11, 2);
$minutos = substr($strFecha, 14, 2);
$segundos = substr($strFecha, 17, 2);
$fd = $dia . $separadorFecha . $mes . $separadorFecha . $anio . " " . $hora . $separadorHora . $minutos . $separadorHora . $segundos;
}else{
$fd = $dia . $separadorFecha . $mes . $separadorFecha . $anio;
}
} else {
$fd = "";
}
return $fd;
}
}
?>