---
schema_version: "1"
id: 4ed8ed821ddab64147ea2b98d616e422ffc31f1b79835a1f861b585eaca9acb9
title: isDateTimeType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-types-functions-isdatetimetype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-types-functions-isdatetimetype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 513ab7839565696c7c0c1386b106ffcd100b83c263077be9b9b3d26006af2844
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# isDateTimeType

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

## isDateTimeType(Type): Boolean

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

_Introduced in DataWeave 2.3.0. Supported by Mule 4.3 and later._

### Parameters

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

### Example

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

#### Source

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

#### Output

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