© Copyright 2023, Astera Software
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 |
Example
In this example, we will pass a date value to the function transformation object using a Variables object.
Where,
value = 01/09/1994
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.
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: