note 9808 added to date

From: Date: Sat, 25 Nov 2000 00:14:34 +0000
Subject: note 9808 added to date
Groups: php.notes 
Request: Send a blank email to php-notes+get-8112@lists.php.net to get a copy of this message
I had problems for display a date stored in a mysql database, I take one example from this page and adapt it for a timestamp with 8 characters. $year=substr($myrow[fecha],0,4); $month=substr($myrow[fecha],4,2); $day=substr($myrow[fecha],6,2); echo " <B>$day - $month - $year</b>"; it display 24 - 11 - 2000 for example.. http://www.php.net/manual/function.date.php

« previous php.notes (#8112) next »