Is there a more compact and elegant way to convert Active Directory "whenCreated" values like "20141114120225.0Z" into a MySQL datetime format than the code below?
if(preg_match("/^(....)(..)(..)(..)(..)(..)/", $value, $m))
$value = sprintf("%s-%s-%s %s:%s:%s", $m[1], $m[2], $m[3], $m[4], $m[5], $m[6]);