# IsDate (str, strformat)

| **Name**    | ***IsDate (String)***                                                                                                                       |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | IsDate (String str, String format)                                                                                                          |
| Purpose     | To check whether a given value represents valid date in the given format.                                                                   |
| Description | Returns true if the given value represents a valid date in the given format. Otherwise returns false.                                       |
| Return Type | Boolean                                                                                                                                     |
| Parameters  | <p>Str \[System.String] – Value to be Checked</p><p>Format \[System.string] – Format for parsing the string. Any valid .Net date format</p> |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fcp7vziiq2AH28Ekz4opJ%2F0.png?alt=media)

**Example**

In this example, we will pass a valid *format* parameter and a string date parameter to match the given format, to the function transformation object using a *Variables* object.

Where,

*format* = yyyy-MM-dd

*str* = 2023-09-23

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FEgjl0lkeVy3NtKOaFk6v%2F1.png?alt=media)

In the output, you can see that the Boolean value, True, has been returned. This means the provided value represents a valid date which matches the provided date format.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fy3ICGYAacJ15oj8fuZ4P%2F2.png?alt=media)
