Dates in Dataweave

Dataweave has rich set of Date based operation. Here, I will cover few. Printing current Date: %dw 2.0output application/json—{ currentDate: now()} now() prints the current DateTime Formatting Dates, Let’s say you want to print dates in format : day-month-year %dw 2.0output application/json—{ currentDate: now() as String{format: ‘dd-MM-uuuu’}} The above code prints the date in the …