# ToString (DateValue)

| **Name**    | ***ToString (Date Value)***                                                             |
| ----------- | --------------------------------------------------------------------------------------- |
| Syntax      | ToString (Date value)                                                                   |
| Purpose     | To convert a date value into a string using default culture.                            |
| Description | Returns a string that represents the specified date. If date is null, null is returned. |
| Return Type | String                                                                                  |
| Parameters  | value \[System.DateTime] – Date to be converted                                         |

![](/files/qtHynNlLEOOk0h5T6b2f)

**Example**

In this example, we will pass a date value to the function transformation object using a *Variables* object.

Where,

*value* = 01/09/1994

<figure><img src="/files/sHv41W4AuRESGq672HOl" alt=""><figcaption></figcaption></figure>

![](/files/mHTu8wsRiCQpA7uXWvBm)

In the output window, you can see that our provided date value has been successfully parsed, indicating that the date has been converted into a string value.

<figure><img src="/files/9pgEni4isSAUxGgR4qVv" alt=""><figcaption></figcaption></figure>

This conversion is also evident if we map the output value to a destination file. As shown below, the data type for this value has been converted to string:

![](/files/RMHuChFVjvxPpi7i8YXW)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/functions/conversion/tostring-datevalue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
