title: How to convert LDAP "whenCreated" attribute timestamp 20150527135501.0Z to timestamp in PHP?
body: <p>How to convert LDAP "whenCreated" attribute timestamp 20150527135501.0Z to timestamp in PHP.</p>
  
  <pre><code>$justthese = array("displayname","department" , "title","samaccountname", "mail", "whenCreated"); 
  
  $result = ldap_search($ldap,$dn , $filter ,$justthese) or die ("Search failed");
   $info = ldap_get_entries($ldap, $result);
  print_r ($info);
  for ($i=0; $i &lt; $info["count"]; $i++) { 
  echo "Name: ".$info[$i]["displayname"][0]."&lt;br&gt;\n"; 
  echo "Department: ".$info[$i]["department"][0]."&lt;br&gt;\n"; 
  echo "Created: ".$info[$i]["whenCreated"][0]."&lt;br&gt;\n"; 
  }
  </code></pre>
  
  <p>I get display name for the user and the department.But i dont get whencreated timestamp. In my print_r ($info); </p>
  
  <p>i get <code>20150527135501.0Z</code> as the timestamp.How can i print this timestamp in PHP ?</p>