today

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

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

Output

"2021-05-15"

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub