Active Directory Last Password Change date and time
<p>I an writing code in C# to find the Last Password Change date and Time in Active Directory. I have been able to find the date seeing some examples, but not the correct timestamp. Can anyone please help regarding this? My code so far is:</p>

<pre><code>DirectoryEntry de = (DirectoryEntry)foundUser.GetUnderlyingObject();
if (de.Properties["pwdLastSet"].Value != null)
{
     LargeInteger liAcctPwdChange = de.Properties["pwdLastSet"].Value as LargeInteger;
     long dateAcctPwdChange = (((long)(liAcctPwdChange.HighPart) &lt;&lt; 32) + (long)liAcctPwdChange.LowPart);
     Label1.Text = DateTime.FromFileTime(dateAcctPwdChange).ToShortDateString();
}
</code></pre>