My fault...
        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"));
echo $result;

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 (
To unsubscribe, visit:

Reply via email to