Why does my custom code return invalid dates in HubSpot?

Thank you for the info! Not sure if at this point its a bug, but changed it in the code, and then re-added the output to the fields and still saying invalid date, unless do I need to programme it so the output says ms as well?