Re: Date problem

From: Date: Tue, 22 Aug 2000 05:27:09 +0000
Subject: Re: Date problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12889@lists.php.net to get a copy of this message
Hello again Hector, I may not have understood your first question after reading though it again. (the whole $ at the end of the variable is what though me off -- I think) :) Anyway, what you can do is this: $array = explode('-', $thedate); $unixtimestamp = mktime(0,0,0,$array[1], $array[2], $array[0]); date('any format you want', $unixtimestamp); ------------------- Fill this in with the format that you want. IE: 'm/d/Y'. hope this helps.. -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 __ > $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 > > > > > > > -- > 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 (#12889) next »