Re: convert date in german format

From: Date: Wed, 26 Nov 2003 16:58:41 +0000
Subject: Re: convert date in german format
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-31776@lists.php.net to get a copy of this message
From: "Hans Lellelid" <hans@appliedsec.com> > Using MySQL DATE_FORMAT() would work, but it's a hack solution; if you > ever wanted to create an English version of your site you would have to > make changes to your data-layer queries -- and that's just not where > that logic belongs. So use UNIX_TIMESTAMP and date() or just use strtotime(). Or go all out and just store the dates in a unix format in an integer column to begin with! The choice is yours... ---John Holems...

« previous php.db (#31776) next »