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

Hi! Have you managed to sort this? I’m after the same issue. Thanks!