Easy Tutorial
❮ Aspnet Dbconnection Razor Cs Variables ❯

WebSecurity - GetCreateDate()



Definition and Usage

The GetCreateDate() method returns the date and time when the specified member account was created.

C# and VB Syntax


Parameters

Parameter Type Description
userName String The username

Return Value

Type Description
DateTime The date and time the member account was created

Errors and Exceptions

In the following cases, any access to the WebSecurity object will throw an InvalidOperationException:

If the account creation date is invalid, the GetCreatedDate() 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

❮ Aspnet Dbconnection Razor Cs Variables ❯