Re: Date problem

From: Date: Tue, 22 Aug 2000 05:19:32 +0000
Subject: Re: Date problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12886@lists.php.net to get a copy of this message
$your_date_format = date('m') .'/'. date('d') .'/'. date('Y'); -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __ > let's say: > thedate$ = "2000-12-31" > > how can I change the format to 12/31/2000? > > I've been looking into the date command but I get: > date("mdY", thedate$) ==> 31121969 > > Thx, > > ============================================ > Hector M Banda > Senior Computer Programmer > Imperial Valley College > Imperial Ca, 92251 > Voice: (760) 355-6105 > Fax: (425) 790-6379 > ============================================ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#12886) next »