wasn't looking hard enough i guess, thats what 2 a.m. will do to you I guess.
here is how to do it, for anyone who finds themselves in a similar
$result = date( "y m d", strtotime("$aDay $aMonth $aYear"));
Seth Yount wrote:
> I am trying to find an example of converting a string to a date format
> suitable for MySQL input. for example...
> ' 2002 March 15 ' needs to be converted to ' 02-03-15 '
> I can reverse this process fine, but am having trouble doing it this way
> -- Seth
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php