🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

PHP, conversi�n del formato de fecha

#11987
From: Primitivo Liberto
Date: Fri, 07 Sep 2001 13:26
18 lines
1400 bytes
Hola, trabajo con MySQL 3.22 y PHP 4.0.3
Quiero mostrar en una web din�mica las fechas en el formato dd-mm-yy
En la tabla el campo es de tipo TIMESTAMP de 6 caracteres (yymmdd).
En PHP uso lo siguiente: 

print strftime("%A %d-%m-%y",$row[3]);  

y lo que ocurre es que me devuelve

Lunes 01-01-70

cuando en la tabla tengo 990512, aunque da igual la fecha siempre
devuelve lo mismo.
He probado cambiando el dato a tipo DATE (yy-mm-dd) y nada.
Leo y releo http://www.php.net/manual/es/ref.datetime.php pero no
encuentro el fallo.
�Alguna idea?
un saludo
Technical Details
Message-ID: <g2ihptgstim63rvt7iq682kr7u6vkjamco@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

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,a31e5b7c800587cb,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-09-07 06:25:57 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: PHP, conversi�n del formato de fecha
Date: Fri, 07 Sep 2001 15:26:33 +0200
Organization: Telefonica Transmision de Datos
Lines: 19
Message-ID: <g2ihptgstim63rvt7iq682kr7u6vkjamco@4ax.com>
NNTP-Posting-Host: 193-153-96-21.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