The formula to convert from Active Directory LastLogon or LastLogonTimestamp for excel is:
Code :
=IF(C2>0,C2/(8.64*10^11) - 109205,"" )
Explanation:
* C2 is the cell that contains the Timestamp.
* The If() statement hides the value if the user has not logged in.
* (8.64*10^11) is the number of nanoseconds in a day divided by 100.
* 109205 is the number of days, including leap days, between 1601 and 1900. (1900 is when excel dates "start" )
That's it. Paste in your formula and format it as a date, or date/time. The times returned are in GMT.