<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Updating field type from Date to Date Time in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1134150#M81495</link>
    <description>&lt;P&gt;You would need to send a separate call to each record after you made the field type change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have Ops Hub Pro, you could automate updating the time with a custom coded action using&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;&amp;nbsp;'s code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, the quickest way to update would be to export to excel and reupload.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 13:59:04 GMT</pubDate>
    <dc:creator>Bortami</dc:creator>
    <dc:date>2025-04-09T13:59:04Z</dc:date>
    <item>
      <title>Updating field type from Date to Date Time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1131124#M81363</link>
      <description>&lt;P&gt;Hi, I am updating a date field to a date time field via the properties API.&amp;nbsp; One thing I've noticed is that when I make the update, the value in the field is changing to the day before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date field value (mm/dd/yyyy): 12/15/2024&lt;/P&gt;&lt;P&gt;Date Time field value (mm/dd/yyyy): 12/14/2024 8:00 PM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks to be happening because my time zone is -4 hours from UTC.&amp;nbsp; I'm wondering if there is a way to prevent this, so that the value just updates to midnight and keeps the same date?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 23:30:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1131124#M81363</guid>
      <dc:creator>WBowman</dc:creator>
      <dc:date>2025-04-02T23:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field type from Date to Date Time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1131532#M81388</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738893"&gt;@WBowman&lt;/a&gt;&lt;/SPAN&gt;, I hope that you are well!&lt;BR /&gt;&lt;BR /&gt;Thanks for asking the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;Let's check with our Top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366"&gt;@sylvain_tirreau&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/171963"&gt;@Bortami&lt;/a&gt;&lt;/SPAN&gt; do you experience the same as &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738893"&gt;@WBowman&lt;/a&gt;&lt;/SPAN&gt; when using date time field, please? Do you have tips to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738893"&gt;@WBowman&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a lovely day and thanks so much in advance for your help!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:55:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1131532#M81388</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-04-03T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field type from Date to Date Time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1131957#M81412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738893"&gt;@WBowman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what you can do is add the time differnce in the date you update.&lt;BR /&gt;for ex; corrected time = originalDate + timezone offset (in hours) which I believe is 4 hours in your case so it will look like this&lt;BR /&gt;&lt;STRONG&gt;"property": "2024-12-15T04:00:00Z"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 11:17:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1131957#M81412</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2025-04-04T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field type from Date to Date Time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1132040#M81418</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;, thanks for the reply. Is there a way to do this when I'm updating the property type via the API from date to datetime, so that it just automatically applies to all values or would I need to do a seperate call to update the record values? If it's the latter, I'm thinking the easiest way may be to just export all records in a csv, use a formula to update the values with the proper offset and then import.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 13:46:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1132040#M81418</guid>
      <dc:creator>WBowman</dc:creator>
      <dc:date>2025-04-04T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field type from Date to Date Time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1132060#M81421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738893"&gt;@WBowman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dateString = '12/15/2024'; // MM/DD/YYYY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;date = new Date(dateString);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;original timestamp = date.valueOf();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adjustedTimestamp = original timestamp - (4 * 60 * 60 * 1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;now send this adjusted timestamp as a new property value in HubSpot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should update the date with -4 hours time difference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 14:11:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1132060#M81421</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2025-04-04T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field type from Date to Date Time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1134150#M81495</link>
      <description>&lt;P&gt;You would need to send a separate call to each record after you made the field type change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have Ops Hub Pro, you could automate updating the time with a custom coded action using&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;&amp;nbsp;'s code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, the quickest way to update would be to export to excel and reupload.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 13:59:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-field-type-from-Date-to-Date-Time/m-p/1134150#M81495</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2025-04-09T13:59:04Z</dc:date>
    </item>
  </channel>
</rss>

