0
我無法使用Mulesoft DataWeave將Date有效轉換爲DateTime。出於某種原因,Mulesoft將日期視爲字符串。無法將a:字符串強制轉換爲:datetime
我該怎麼辦才能解決此問題並正確轉換日期?我試圖去的格式是yyyy-mm-dd到mm/dd/yyyy hh:mm:ss。
錯誤:
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"}
在上面的例子,flowVars.SalesforceAccount.Contract_End_Date__c是日期,和DateCustomFieldRef__custentity_icims_legacy_f_next_renewal是DATE_TIME在NetSuite的。