Custom Code to change Date/Time stamp to Date

The date must best set to midnight in order to copy via native workflows.

Here are my tests:


code used


output defined as datetime

in milliseconds with time set to midnight

string set to midnight