<?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 Javascript Timestamp Format in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Javascript-Timestamp-Format/m-p/458636#M23603</link>
    <description>&lt;P&gt;Hello everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the Javascript SDK to create File Requests via the API. Everything was working fine, but I recently upgraded to a Dropbox Professional account and tried to add the "deadline" field. The documentation on GitHub merely says to provide a "Timestamp" but&amp;nbsp; doesn't explain what format this timestamp should be in. I was wondering if there could be any clarification on this.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 04:55:10 GMT</pubDate>
    <dc:creator>cascadeCommons</dc:creator>
    <dc:date>2020-10-05T04:55:10Z</dc:date>
    <item>
      <title>Javascript Timestamp Format</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Javascript-Timestamp-Format/m-p/458636#M23603</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the Javascript SDK to create File Requests via the API. Everything was working fine, but I recently upgraded to a Dropbox Professional account and tried to add the "deadline" field. The documentation on GitHub merely says to provide a "Timestamp" but&amp;nbsp; doesn't explain what format this timestamp should be in. I was wondering if there could be any clarification on this.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 04:55:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Javascript-Timestamp-Format/m-p/458636#M23603</guid>
      <dc:creator>cascadeCommons</dc:creator>
      <dc:date>2020-10-05T04:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Timestamp Format</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Javascript-Timestamp-Format/m-p/459026#M23609</link>
      <description>&lt;P&gt;I see you also sent this in to support, so I'm copying the answer that we sent you there here in case anyone else has the same question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#fileRequestsCreate__anchor" rel="noreferrer" target="_blank"&gt;fileRequestsCreate&lt;/A&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;method takes a&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FileRequestsCreateFileRequestArgs" rel="noreferrer" target="_blank"&gt;FileRequestsCreateFileRequestArgs&lt;/A&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;object, where&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;FileRequestsCreateFileRequestArgs.deadline&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;should be a&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#FileRequestsFileRequestDeadline" rel="noreferrer" target="_blank"&gt;FileRequestsFileRequestDeadline&lt;/A&gt;&lt;/CODE&gt;&lt;SPAN&gt;, where&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;FileRequestsFileRequestDeadline.deadline&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;should be a timestamp string with this format:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;%Y-%m-%dT%H:%M:%SZ&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies that isn't specifically shown in the JavaScript SDK documentation. I'll ask the team to improve that. For reference though, you can find&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" rel="noreferrer" target="_blank"&gt;the documentation for the HTTPS endpoints themselves here&lt;/A&gt;&lt;SPAN&gt;, such as&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_requests-create" rel="noreferrer" target="_blank"&gt;for /2/file_requests/create&lt;/A&gt;&lt;SPAN&gt;, which is what&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;fileRequestsCreate&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;uses, showing the specific expected string formats.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the code should look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;var deadline = {"deadline": "2020-10-31T12:34:56Z"};&lt;BR /&gt;&lt;BR /&gt;dbx.fileRequestsCreate({title: theTitle, destination: dbxDestination, deadline: deadline, open: true})&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 14:57:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Javascript-Timestamp-Format/m-p/459026#M23609</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-10-05T14:57:10Z</dc:date>
    </item>
  </channel>
</rss>

