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

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