0
Answer

How to convert Active Directory LastLogonTimeStamp

Greg Mccoy

Greg Mccoy

10y
1k
1
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