# TryParseDate (String, UnknownDate)

| **Name**    | ***TryParseDate***                                                                                                  |
| ----------- | ------------------------------------------------------------------------------------------------------------------- |
| Syntax      | TryParseDate (String str, Unknown date)                                                                             |
| Purpose     | To carry out a parameter test which checks whether a string value can be converted into a DateTime format value.    |
| Description | Returns true if a string value is successfully converted and parsed into a DateTime value. Otherwise returns false. |
| Return Type | Boolean                                                                                                             |
| Parameters  | <p>Str \[System.String] – Value to be tested</p><p>Date \[System.DateTime]</p>                                      |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/xceBRv9S8aKAzW2ypHAK/0.png)

**Example**

In this example, we will pass a string value representing an unknown date format to the function transformation object using a *Variables* object.

Where,

*str* = 1978.MAR.17

<figure><img src="https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/4wa0ZuVcRevr4vpEis2Z/1.png" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the provided value has been parsed successfully, the unknown date format has been converted into a known date format, and the Boolean value, True has been returned, indicating a successful parameter test.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/cJFLpfO7EhhuJibBKdMW/2.png)
