---
schema_version: "1"
id: 2d535b1a6b103d88a1620b3910f4eb791505073a5ebae048b2e8e3caeb2760de
title: isDateType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-types-functions-isdatetype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-types-functions-isdatetype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7b82f6bebc13730f3c217eb806c9dd71fc72d8082eb29d5804192f3a7ff803f5
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# isDateType

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## isDateType(t: Type): Boolean

Returns `true` if the input is the Date type.

_Introduced in DataWeave version 2.3.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>t</code></p></td><td><p>The type to check.</p></td></tr></tbody></table>

### Example

This example shows how `isDateType` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Types
type ADate = Date
output application/json
---
{
   a: isDateType(ADate),
   b: isDateType(Date),
   c: isDateType(String),
}
```

#### Output

```Json
{
  "a": true,
  "b": true,
  "c": false
}
```
