Re: [PHP] Format date From: Mike Eheler (meheler <email protected>)
Date: 10/15/01

echo date("Y-m-d", strtotime($data['datefield']));

Mike

Matthew Halpin wrote:

>Hello,
>I have about 5 million records in a varchar field in mysql that look
>like 10-Jan-2001 I need to get them formated to appear as 2001-01-10
>anyone have any ideas how I can go about this.
>
>Thanks
>Matthew Halpin
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>