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

# 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
}
```
