Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines a validation test that tests whether a value can be treated as a date/time value.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function DateTime ( _
errorMessage As String _
) As IValidator
'Usage
Dim errorMessage As String
Dim returnValue As IValidator
returnValue = Validator.DateTime(errorMessage)
public static IValidator DateTime(
string errorMessage
)
public:
static IValidator^ DateTime(
String^ errorMessage
)
static member DateTime :
errorMessage:string -> IValidator
public static function DateTime(
errorMessage : String
) : IValidator
Parameters
- errorMessage
Type: System.String
The error message to display if validation fails.
Return Value
Type: System.Web.WebPages.IValidator
The validation test.