Re: How to display date?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: How to display date?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7075@lists.php.net to get a copy of this message
Osman, try the follwoing (Substitutign your own variables) list($Year,$Month,$Day) = split('-',$date_team); //Remove the '-' from the MySQL sate format. $stampeddate = mktime(12,0,0,$Month,$Day,$Year); //Create a UNIX style timestamp from the result $date_team = date("d M Y",$stampeddate); //Use php date function and args' to print in more useable format HTH :) Russ #-------------------------------------------------------# "Believe nothing - consider everything" Russ Michell Anglia Polytechnic University Webteam http://gertrude.sipu.anglia.ac.uk/webteam r.j.michell@anglia.ac.uk +44 (0)1223 363271 ext 2331 www.theruss.com #-------------------------------------------------------#

« previous php.db (#7075) next »