My UK dates are this format DD/MM/YYYY I want
it reversed and then the seperator changed so it becomes
YYYY-MM-DD
I use this PHP at the moment
$available_from = implode('/', array_reverse(explode('-',
$available_from)));
An even better solution would be:
$UKDate = '22/05/2007'
$USDate = date( 'Y-m-d', strtotime( $UKDate ));
echo 'Before: ' . $UKDate . '<br>';
echo 'After: ' . $USDate . '<br>';
thnx,
Chris
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]