I have a SQL Server Datetime field with value 1962-04-04 00:00:00.0
. This needs to be pushed into Salesforce date field through Mule. I am handling this conversion in the data mapper.
I have tried many possibilities but nothing works. Any pointers would help.
The last one I tried was as below. I thought it should work.
output.PersonBirthdate1 = str2date(input.DATE_OF_BIRTH, "yyyy-MM-dd hh:mm:ss.ZZZ");
But it gives an error:
Caused by: [Error: java.text.ParseException: Unparseable date: "1962-04-04 00:00:00.0"]
根据日期的格式,它将是:
str2date(input.DATE_OF_BIRTH,"yyyy-MM-dd HH:mm:ss.S")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.