Timespan since last password reset
<p>I have created a small asp.net application that allows users to reset their passwords. I am able to retrieve that last time the password was reset from the Directory Searcher object, but I'm having trouble with checking the timespan since the last password reset. The users can reset their passwords again after 24 hours have passed, otherwise they well get an error stating that they are not able to update their password at this time. Any recommendations on how to best go about doing this?</p>

<pre><code>string passwordLastSet = string.Empty;
passwordLastSet = DateTime.FromFileTime((Int64)(result.Properties["PwdLastSet"][0])).ToString();
</code></pre>

<p>Thanks,<br>
Jason</p>
