Re: Re[2]: [PHP-DB] date format to dateformat
| From: | CrossWalkCentral | Date: | Mon, 23 Sep 2002 05:52:36 +0000 |
| Subject: | Re: Re[2]: [PHP-DB] date format to dateformat | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21920@lists.php.net to get a copy of this message | ||
That did it thanks
"Andrey Sosnitsky" <andrey@pleskov.ru> wrote in message
news:164321851848.20020923091612@obladmin.pskov.ru...
> 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
>
>