Greg Mccoy

Greg Mccoy

  • NA
  • 1
  • 1.6k

How to convert Active Directory LastLogonTimeStamp

May 5 2014 3:00 PM
I am developing an Audit Tool that pulls certain information from Active Directory and then takes this info and looks up and gets other information in other databases.  I am pulling the LastLogonTimeStamp fine but I belive it is in Int64 format.  Anyhow, i am looking for a snippet of code to convert the format to a DateTime format so I can actully read it.  Here is an example of the output (130436938271036343)
 
Thanks