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"]
.ZZZ)? - admdrew.ZZZand.000- admdrew.character? ("yyyy-MM-dd hh:mm:ss ZZZ") - admdrewinput.DATE_OF_BIRTH. Can't you massage that data before sending it tostr2date? - admdrew