HubSpot Community
Custom Code to change Date/Time stamp to Date
Data Hub
💬 RevOps Discussions
admin
,
revops
,
data-quality-command-center
,
salesops
Bortami
June 29, 2024, 3:37am
11
The date must best set to midnight in order to copy via native workflows.
Here are my tests:
Screenshot 2024-06-28 at 10.33.24 PM.jpg
850×1170 153 KB
code used
Screenshot 2024-06-28 at 10.33.28 PM.png
850×1170 175 KB
output defined as datetime
Screenshot 2024-06-28 at 10.34.25 PM.png
850×1170 110 KB
in milliseconds with time set to midnight
Screenshot 2024-06-28 at 10.28.23 PM.png
850×1170 104 KB
string set to midnight
Screenshot 2024-06-28 at 10.39.53 PM.png
850×1170 131 KB
show post in topic
Related topics
Topic
Replies
Views
Activity
String date to date property in automation/workflow with custom code
APIs & Integrations
python
,
workflows
16
19419
March 29, 2024
Copying custom date values to date property error
APIs & Integrations
workflows
3
3607
May 29, 2024
Custom Code not outputting to created string field
CRM
crm
4
869
July 11, 2025
Date Format For Setting Dates In Workflows
Data Hub
workflows
5
12507
June 20, 2024
Workflow 'Invalid Property Value' Error with Custom Code Date Output
APIs & Integrations
workflows
,
contacts
,
webhooks
3
1323
February 27, 2026