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

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