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

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