[man]strtotime[/man]
[man]date[/man]
Or just look at the formats and notice that all the parts of the second format are already there in the first format, and that to get at them you could just use [man]substr[/man] or [man]sscanf[/man] or [man]preg_match[/man] or [man]strtok[/man], or ....