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

Thanks a lot! It worked.