Re: date format to dateformat
| From: | CrossWalkCentral | Date: | Sun, 22 Sep 2002 22:05:38 +0000 |
| Subject: | Re: date format to dateformat | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21908@lists.php.net to get a copy of this message | ||
What if
$date="10-02-2002";
I tried it this way and the explode causes problems with the - in it
What would be the best way to deal with this should i just parse out the -?
"Andrey Sosnitsky" <andrey@pleskov.ru> wrote in message
news:20141039664.20020922130025@obladmin.pskov.ru...
> Hello CrossWalkCentral,
>
> Sunday, September 22, 2002, 7:06:18 AM, you wrote:
>
> Try this
>
> $date= "10 01 2002";
> list ($day, $month, $year) = explode(" ", $date);
> echo "$year-$month-$day";
>
> C> I am having problems coverting the followign date format. Does any one
have
> C> any insight on this.
> C> $date= 10 01 2002
> C> I need to conver this to Y-m-d
> C> any help would be great
>
> www.pskov.ru
> www.invest.pskov.ru
> --
> Best regards,
> Andrey mailto:andrey@pleskov.ru
>