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" <[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 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:[EMAIL PROTECTED] > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php