Contact Us 1-800-596-4880

yesterday

yesterday(): Date

Returns the date for yesterday as a Date type.

Introduced in DataWeave version 2.4.0.

Example

This example shows the output of yesterday function.

Source

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

Output

"2021-05-14"