note 56387 deleted from function.date by nlopess

From: Date: Tue, 06 Sep 2005 08:53:02 +0000
Subject: note 56387 deleted from function.date by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94794@lists.php.net to get a copy of this message
Note Submitter: g_freelance at yahoo dot whatever ---- Just to participate in this open source forum. Sorry if someone have written it before (i'm a newbie). Here is an example to display a user-formatted date of your MySQL-formatted one. consider $s_result['DOB'] is your date in MySQL format and it's value is 1980-13-10 echo date('F jS, Y',mktime(0,0,0, substr($s_result['IDDOB'],5,2), substr($s_result['IDDOB'],8,2), substr($s_result['IDDOB'],0,4))); will output October, 13th. But it still causes error when deals with year values less than 1970 (say 1969), though..

« previous php.notes (#94794) next »