🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12016

Re: PHP, conversi�n del formato de fecha

#12016
From: Primitivo Liberto
Date: Mon, 10 Sep 2001 10:32
23 lines
1585 bytes
muchas gracias por la soluci�n, funciona perfectamente.
Esto pasa por aprender las cosas a trompicones, estaba mirando las
funciones relacionadas con hora y fecha y no conoc�a substr()
un saludo!


On Fri, 07 Sep 2001 17:38:55 +0200, Xavier Montero
<xmontero@dsitelecom.com> wrote:

>Prueba con substr()
>
>(no testeado):
>
>	$dd = substr($fechaoriginal, 4, 2);
>	$mm = substr($fechaoriginal, 2, 2);
>	$yy = substr($fechaoriginal, 0, 2);
>	echo($dd . "-" . $mm . "-" . $yy);
>
>Si quieres a�adir lo de Lunes, martes, etc, entonces
>
>	$fechabuena = $dd . "-" . $mm . "-" . $yy;
>
>y usa tu strftime antiguo con $fechabuena en vez de $row[3]
Technical Details
Message-ID: <0g5pptgch3b1cksrepg8s9309a65rnlu38@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.mad.ttd.net!not-for-mail
References: <g2ihptgstim63rvt7iq682kr7u6vkjamco@4ax.com> <3B98EA0F.73AE0976@dsitelecom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,a31e5b7c800587cb
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-09-10 03:31:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.mad.ttd.net!not-for-mail
From: Primitivo Liberto <bond@nodo50.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: PHP, conversi�n del formato de fecha
Date: Mon, 10 Sep 2001 12:32:22 +0200
Organization: Telefonica Transmision de Datos
Lines: 24
Message-ID: <0g5pptgch3b1cksrepg8s9309a65rnlu38@4ax.com>
References: <g2ihptgstim63rvt7iq682kr7u6vkjamco@4ax.com> <3B98EA0F.73AE0976@dsitelecom.com>
NNTP-Posting-Host: 193-153-96-44.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Forte Agent 1.8/32.548