<?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 Error sending Date Picker value through API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390339#M38499</link>
    <description>&lt;P&gt;We are sending a date value to a date picker property in the form of YYYY-MM-DD (which we've confirmed with the app is ISO8601 compliant, but maybe that's intrinsic of the date when written that way - don't know what I'm talking about)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"validationResults": [&lt;BR /&gt;{&lt;BR /&gt;"isValid": false,&lt;BR /&gt;"message": "2020-12-01 was not a valid long. Portal xxxxxxx, object type 0-3",&lt;BR /&gt;"error": "INVALID_LONG",&lt;BR /&gt;"name": "invoice_sent"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"status": "error",&lt;BR /&gt;"message": "Property values were not valid",&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Hubspot &lt;A href="https://developers.hubspot.com/docs/api/faq" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; says this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2015-05-01 would be used for May 1 2015&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Not really a developer - any tips you can help me with?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 19:02:05 GMT</pubDate>
    <dc:creator>JakeW</dc:creator>
    <dc:date>2020-12-01T19:02:05Z</dc:date>
    <item>
      <title>Error sending Date Picker value through API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390339#M38499</link>
      <description>&lt;P&gt;We are sending a date value to a date picker property in the form of YYYY-MM-DD (which we've confirmed with the app is ISO8601 compliant, but maybe that's intrinsic of the date when written that way - don't know what I'm talking about)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"validationResults": [&lt;BR /&gt;{&lt;BR /&gt;"isValid": false,&lt;BR /&gt;"message": "2020-12-01 was not a valid long. Portal xxxxxxx, object type 0-3",&lt;BR /&gt;"error": "INVALID_LONG",&lt;BR /&gt;"name": "invoice_sent"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"status": "error",&lt;BR /&gt;"message": "Property values were not valid",&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Hubspot &lt;A href="https://developers.hubspot.com/docs/api/faq" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; says this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2015-05-01 would be used for May 1 2015&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Not really a developer - any tips you can help me with?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 19:02:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390339#M38499</guid>
      <dc:creator>JakeW</dc:creator>
      <dc:date>2020-12-01T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending Date Picker value through API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390396#M38508</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65282"&gt;@JakeW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will want the date in the unix timestamp format as detailed &lt;A href="https://legacydocs.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis" target="_blank" rel="noopener"&gt;here&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You are working your way up the ladder as a developer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 22:37:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390396#M38508</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-12-01T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending Date Picker value through API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390401#M38510</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp; - am I misreading the FAQ in this case then? One example given is in Unix as you've suggested, but it also lists a stock YYYY-MM-DD as an 'example' of how to send dates to a Date Picker property.&lt;BR /&gt;&lt;BR /&gt;Here's a screenshot from &lt;A href="https://developers.hubspot.com/docs/api/faq" target="_blank"&gt;this article&lt;/A&gt; I'm referring to&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JakeW_0-1606862663943.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/34892iE9435643A6F9BDE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JakeW_0-1606862663943.png" alt="JakeW_0-1606862663943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm only going the extra mile to ask here because our app doesn't have an automatic means to reformat dates into a Unix timestamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 22:45:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390401#M38510</guid>
      <dc:creator>JakeW</dc:creator>
      <dc:date>2020-12-01T22:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending Date Picker value through API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390665#M38539</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65282"&gt;@JakeW&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Thanks for following up on that.&amp;nbsp; Looks like we may have some contradictory messaging &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Would you do me a favor and send me the endpoint that you are posting to (minus hapikey) as well as the json body?&lt;/P&gt;
&lt;P&gt;Here is a &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Update-Custom-Date-Picker-in-Deals-through-the-API/m-p/229501/highlight/true#M8397" target="_blank" rel="noopener"&gt;post&lt;/A&gt; with a similar issue as well as the &lt;A href="https://legacydocs.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis" target="_blank" rel="noopener"&gt;referenced docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Once you send me the details I asked for, I will test and make sure we get some consistency &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 18:01:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/390665#M38539</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-12-02T18:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending Date Picker value through API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/391066#M38584</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp; - the docs mention UNIX timestamp - I think we can do that through the app we're trying to do this with. I don't know how to determine what endpoint we are posting to, or what a hapikey and json body are, so I'm not sure I can help further o_o&lt;BR /&gt;&lt;BR /&gt;For now I'll just assume that we need to send it in UNIX in milliseconds, and it's incorrect to say that date pickers can receive a straight up YYYY-MM-DD value ...&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:49:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/391066#M38584</guid>
      <dc:creator>JakeW</dc:creator>
      <dc:date>2020-12-03T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending Date Picker value through API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/698605#M57258</link>
      <description>&lt;P&gt;I am running into the same issue with using unix timestamp as well and have asked this question multiple times via support but no answer.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 04:32:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-sending-Date-Picker-value-through-API/m-p/698605#M57258</guid>
      <dc:creator>AKhanduri</dc:creator>
      <dc:date>2022-09-27T04:32:56Z</dc:date>
    </item>
  </channel>
</rss>

