Export (0) Print
Expand All

Validator.DateTime Method

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)

'Declaration
Public Shared Function DateTime ( _
	errorMessage As String _
) As IValidator
'Usage
Dim errorMessage As String 
Dim returnValue As IValidator 

returnValue = Validator.DateTime(errorMessage)

Parameters

errorMessage
Type: System.String
The error message to display if validation fails.

Return Value

Type: System.Web.WebPages.IValidator
The validation test.
Show:
© 2015 Microsoft