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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> 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
> Best regards,
> Andrey mailto:[EMAIL PROTECTED]
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php