[英]Mule Date Conversion
My scenario 我的情况
My Mule flow reads a file and update Salesforce. 我的Mule流读取文件并更新Salesforce。
Date field in file - 6/2/2015 5:06:00 AM 文件中的日期字段-6/2/2015 5:06:00 AM
It will be updated in a datetime field in Salesforce. 它将在Salesforce的日期时间字段中进行更新。 I am not able to figure out the mapping in the data mapper. 我无法弄清楚数据映射器中的映射。 Any pointers please.. Thanks! 任何指针,请..谢谢!
1.Right click the field ( Date field) in Data Mapper- In format Option, place your required format example: dd.MM.yyyy
. 1.右键单击“数据映射器”中的字段(“日期”字段)-在“格式选项”中,放置所需的格式示例: dd.MM.yyyy
。 if it is not working, try the below option 如果不起作用,请尝试以下选项
Can also use the script to format Date 也可以使用脚本格式化日期
output.Required_Date = calendar2str(input.validDate, "dd.MM.yyyy HH.mm.ss"); output.Required_Date = calendar2str(input.validDate,“ dd.MM.yyyy HH.mm.ss”);
Please read DataMapper documents for more details 请阅读DataMapper文档以获取更多详细信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.