---
schema_version: "1"
id: 94921334a30f5288dbae525fe34a0d2bdae34353ee6c5f1ae537fa401be8c7bb
title: today
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-dates-functions-today.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-dates-functions-today
source_site: docs.mulesoft.com
content_type: documentation
content_hash: eefd5f9b3f0d06534a5d6a6fe0c592d2c1ffc4957ceeb7f25550153b45a52225
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# today

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

## today(): Date

Returns the date for today as a `Date` type.

_Introduced in DataWeave version 2.4.0._

### Example

This example shows the output of `today` function.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Dates
output application/json
---
today()
```

#### Output

```Json
"2021-05-15"
```
