Re[2]: [PHP-DB] date format to dateformat

From: Date: Mon, 23 Sep 2002 05:16:12 +0000
Subject: Re[2]: [PHP-DB] date format to dateformat
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-21915@lists.php.net to get a copy of this message
Hello, CrossWalkCentral. You wrote 23 сентября 2002 г., 2:05:38: So, explode() requires a seperator as a first argument. You code is $date= "10-01-2002"; list ($day, $month, $year) = explode("-", $date); echo "$year-$month-$day"; See PHP manual at http://www.php.net/manual/en/function.explode.php C> What if C> $date="10-02-2002"; C> I tried it this way and the explode causes problems with the - in it C> What would be the best way to deal with this should i just parse out the -? www.pskov.ru webmaster|programmer|DBA www.invest.pskov.ru www.education.pskov.ru -- Best Regards, Andrey mailto:andrey@pleskov.ru

« previous php.db (#21915) next »