Search code examples
muleanypoint-studiodataweave

Mule changing the date format


I am trying to convert date from "dd-MM-yyyy" format to "dd/MM/yyyy"

 dob as Date {format: \"dd-MM-yyyy\"} as String {format :\"dd\/MM\/yyyy\"}

I am getting a dataweave parsing error. Please help


Solution

  • dob as Date {format: "dd-MM-yyyy"} as String {format :"dd/MM/yyyy"}