Easy Tutorial
❮ Prop Webcontrol Calendar Todaysdate Prop Webcontrol Calendar Nextmonthtext ❯

WebSecurity - GetPasswordChangeDate()


Definition

The GetPasswordChangeDate() method returns the date and time when the user's password was last changed.


C# and VB Syntax


Parameters

Parameter Type Description
userName String The username

Return Value

Type Description
DateTime The date and time of the last password change

Errors and Exceptions

Under the following conditions, any access to the WebSecurity object will throw an InvalidOperationException:


Remarks

If the password has not been changed, the GetPasswordChangeDate() method returns DateTime.MinValue.

The value of DateTime.MinValue is 00:00:00.0000000, January 1, 0001.


Technical Data

Name Value
Namespace WebMatrix.WebData
Assembly WebMatrix.WebData.dll

❮ Prop Webcontrol Calendar Todaysdate Prop Webcontrol Calendar Nextmonthtext ❯