I'm using transform message component to transfer .csv file to another .csv file. input is coming in "YYYY/DD/MM HH:MM:SS" format but I need to transform to "MM/DD/YYYY" format.
1
votes
2 Answers
2
votes
0
votes
You can also give it a try with this expression
%dw 1.0
%output application/csv
---
formatedDate: |2003-10-01T23:57:59| as :string {format: "MM-dd-yyyy"}
For more date conversion you can refer to mulesoft document.
https://developer.mulesoft.com/docs/dataweave#_changing_the_format_of_a_date