String date to date property in automation/workflow with custom code

Thank you. I am not sure if my reply shows correctly, but I have the output correct in ISO timestamp. But I am not able to pass it to property. As it shows “invalid data”

Would the code you added correct this issue?

My issue is in this step:

The delivery date (timestamp) is a date picker property.

Hope you can help me, I am been 3 weeks stuck with this.

Thank you!!