How to change the string into date

Hello,  I have a problem to change string to date after I import the XML file. The date on the XML file is string, the format is “12/3/2018 8:47:32 AM” but I need to change it to date in the microflow.  I used: “parseDateTime($Iteratorchemistry_content/uc_WorkflowDate,'mm-dd-yyyy hh:mm:ss',empty)” The graph showed just lines ,but the date didn’t match with the date in the XML file. I would appreaciate if anyone could help.  Thank you inadvance. Best,
1 answers

Your pattern is incorrect. The pattern should be something like:

M/d/yyyy h:mm:ss a