I need to grab a value from datetime picker field using postfunction using issue.getCustomFieldValue method in one of the workflows and then load that same exact date value into issue input parameter (issueInputParameters.addCustomFieldValue) to create andother issue in a different project.
The problem is that source field data is returned as: "2019-01-16 13:37:00.0" and all my attempts to parse or format this string into the date format that Jira accepts fail with "unparseable date" message.
Is there a way to convert this string into date in one line without adding code for removing the trailing ".0" and then parsing date and time substrings separately and then concatenating back together?