note 54969 added to function.date

From: Date: Thu, 21 Jul 2005 09:18:07 +0000
Subject: note 54969 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-92241@lists.php.net to get a copy of this message
This function turns the date from DATETIME format to 'DD-MM-YYYY HH:mm:ss' format function convertir_fecha($fecha_datetime){ //This function turns the date from DATETIME format to 'DD-MM-YYYY HH:mm:ss' format $fecha = split("-",$fecha_datetime); $hora = split(":",$fecha[2]); $fecha_hora = split(" ",$hora[0]); $fecha_convertida = $fecha_hora[0].'-'.$fecha[1].'-'.$fecha[0].' '.$fecha_hora[1].':'.$hora[1].':'.$hora[2]; return $fecha_convertida; } echo convertir_fecha("2005-07-21 09:08:19"); //Shows.... 21-07-2005 09:08:19 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54969 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54969&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54969&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54969&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54969&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54969&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54969&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54969&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92241) next »