substr ldap php



I need help! I'm making a php search page with our ldap server, and
when I return a value, the date displays like this : 200703191410Z ;
when what i want is 2007-03-19, or something along those lines. I
tried using the substr method, but that just returns parts of the
attribute name rather than the returned date. Any help would be
appreciated thanks!

Kevan11
.