# convert::to-datetime

[This is preliminary documentation and subject to change.]

(Deprecated)

Converts the argument to a datetime.

### Usage

`datetime convert::to-datetime(value)`

### Parameters

Name | Type | Description
--- | --- | ---
value | datetime | value to be converted

### Return Value

value converted to datetime. The function fails with an exception when the conversion is not possible.

### Requirements

Assembly: NAnt.Core (0.91.3881.0)