<?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: V2 getServerModified date format in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219640#M11602</link>
    <description>Fantastic, thank you very much</description>
    <pubDate>Fri, 05 May 2017 18:58:06 GMT</pubDate>
    <dc:creator>andrew r.46</dc:creator>
    <dc:date>2017-05-05T18:58:06Z</dc:date>
    <item>
      <title>V2 getServerModified date format</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219628#M11598</link>
      <description>&lt;P&gt;I'm transitioning to v2 on Android. I use the modified date and time to know when is a good time to backup again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the migration documentation it says:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Date formats&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;v1: All dates in the API are strings in the following format: "Sat, 21 Aug 2010 22:31:20 +0000"&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;v2: All dates are strings in the &lt;A href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations" target="_blank"&gt;ISO 8601 "combined date and time representation" format&lt;/A&gt;. For example, "2007-04-05T14:30".&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use:&lt;/P&gt;&lt;PRE&gt;SearchResult searchResult = dbxClientV2.files().search("", KEY_WEEKLY_FILE_NAME);
FileMetadata fileMeta = (FileMetadata) searchResult.getMatches().get(0).getMetadata();
fileMeta.getServerModified().toString()&lt;/PRE&gt;&lt;P&gt;I'm getting the following format:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Wed Apr 26 17:13:03 EDT 2017&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can format this with relative ease, but I'm expecting the ISO 8601 format and I'm concerned it will change at some point without warning, or perhaps I'm doing something wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219628#M11598</guid>
      <dc:creator>andrew r.46</dc:creator>
      <dc:date>2019-05-29T09:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: V2 getServerModified date format</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219639#M11601</link>
      <description>&lt;P&gt;The documentation you quoted is referring to the format sent by the API in the HTTP response itself. That format is stable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using the Java SDK, the responses are translated into native objects for you. For example, &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileMetadata.html#getServerModified--" target="_self"&gt;FileMetadata.getServerModified&lt;/A&gt;&amp;nbsp;returns a Java&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" target="_self"&gt;Date&lt;/A&gt; object. The Java &lt;A href="https://docs.oracle.com/javase/6/docs/api/java/util/Date.html#toString()" target="_self"&gt;Date.toString&lt;/A&gt;&amp;nbsp;method by default does give a date string of the format "dow mon dd hh:mm:ss zzz yyyy". The stability of that format is up to the stability of Java. You can alteratively format it however you want, e.g., using &lt;A href="https://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html" target="_self"&gt;DateFormat&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 18:54:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219639#M11601</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-05T18:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: V2 getServerModified date format</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219640#M11602</link>
      <description>Fantastic, thank you very much</description>
      <pubDate>Fri, 05 May 2017 18:58:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-getServerModified-date-format/m-p/219640#M11602</guid>
      <dc:creator>andrew r.46</dc:creator>
      <dc:date>2017-05-05T18:58:06Z</dc:date>
    </item>
  </channel>
</rss>

