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

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