NAnt SDK Documentation - v0.92 |

# DateTimeValidatorAttribute.Validate Method

Checks if the specified value can be converted to a DateTime.

[Visual Basic]
Overrides Public Sub Validate( _
ByVal value As Object _
)
[C#]
public override void Validate(
object value
);

#### Parameters

value
  The value to be checked.

#### Exceptions

Exception Type | Condition
--- | ---
ValidationException | value cannot be converted to a DateTime.

#### See Also

DateTimeValidatorAttribute Class | NAnt.Core.Attributes Namespace