In active directory there are a bunch of INT64 fields (like lastlogintimestamp, accountexpires, etc)
How do I convert these to datetime values in C#?
In active directory there are a bunch of INT64 fields (like lastlogintimestamp, accountexpires, etc)
How do I convert these to datetime values in C#?
http://securitythroughabsurdity.com/2005/12/active-directory-and.html
What that says, is the correct function is DateTime.FromFileTime
, which returns a DateTime object, which is exactly what you need.