# datetime::to-string

[This is preliminary documentation and subject to change.]

Converts the specified DateTime to its equivalent string representation.

### Usage

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

### Parameters

Name | Type | Description
--- | --- | ---
value | datetime | A DateTime to convert.

### Return Value

A string representation of value formatted using the general format specifier ("G").

### Remarks

value is formatted with the DateTimeFormatInfo for the invariant culture.

### Requirements

Assembly: NAnt.Core (0.91.3881.0)