I am unable to use Mulesoft DataWeave to effectively transform a Date to a DateTime. For some reason, Mulesoft is treating the Date as a String.
What can I do to fix this issue and convert the date properly? The format I am attempting to go from is yyyy-mm-dd to mm/dd/yyyy hh:mm:ss.
Error:
Cannot coerce a :string to a :datetime, caused by :Text '2019-03-08' could not be parsed at index 2.
DataWeave
DateCustomFieldRef__custentity_icims_legacy_f_next_renewal: flowVars.SalesforceAccount.Contract_End_Date__c as :datetime {format: "dd/MM/yyyy HH:mm:ss"}
In the example above, flowVars.SalesforceAccount.Contract_End_Date__c is a DATE, and DateCustomFieldRef__custentity_icims_legacy_f_next_renewal is a Date_time in NetSuite.