I have two string 1 represent date and 2nd time. have to convert same into date format in Mule-dataweave
input :- s1= 20161228(yyyymmdd), s2= 1608(hhmm)
output :- 12-28-2016 16:08:00(mm-dd-yyyy hh:mm:ss) in date format.
Any Help?
I have two string 1 represent date and 2nd time. have to convert same into date format in Mule-dataweave
input :- s1= 20161228(yyyymmdd), s2= 1608(hhmm)
output :- 12-28-2016 16:08:00(mm-dd-yyyy hh:mm:ss) in date format.
Any Help?
You can convert as given below.
DATUM: input as :localdatetime {format: "yyyymmdd"} as :string {format: "yyyyMMdd"},
DATUM: now as :string {format: "mm-dd-yyyy"}
For more about date formats see the below link.
https://docs.mulesoft.com/mule-user-guide/v/3.8/dataweave-types#dates