<?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>Question Re: JSON Date Format in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802709#M4423328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately those are the standard ones for XML(&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ISO-8601&lt;/SPAN&gt;) and JSON (Epoch) respectively. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change the output at system level for JSON, use an EDM.String to represent the formated datetime you want. For UI which will use the Epoch datetime, there are several libraries that convert Epoch to human readable time. Our UI devs prefer the latter but it depends on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 16:22:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-06T16:22:08Z</dc:date>
    <item>
      <title>JSON Date Format</title>
      <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaq-p/11802706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a Gateway service with some date fields (ABAP datatype DATS converted to Edm.DateTime or Edm.DateTimeOffset).&lt;/P&gt;&lt;P&gt;When service is called with output format JSON, date values are represented in MicrosoftDateFormat format (e.g. "/Date(1448841600000)/").&lt;/P&gt;&lt;P&gt;In contrary, when output format is XML, dates are in ISO-8601 format: YYYY-MM-DDThh:mm:ssTZD (e.g. 1997-07-16T19:20:30+01:00).&lt;/P&gt;&lt;P&gt;Is there any way to change the JSON date format, either in field level or system level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-date-format/qaq-p/11802706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-25T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Date Format</title>
      <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802707#M4423326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current formats which you are getting are the standard ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at all you want to send back the Date value in some other format, then you will have to use Edm.String in GW level and send back the date value with the desired format from DPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashwn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802707#M4423326</guid>
      <dc:creator>AshwinDutt</dc:creator>
      <dc:date>2016-08-25T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Date Format</title>
      <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802708#M4423327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afarid of it.&lt;/P&gt;&lt;P&gt;Thanks, anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 12:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802708#M4423327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-05T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Date Format</title>
      <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802709#M4423328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately those are the standard ones for XML(&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ISO-8601&lt;/SPAN&gt;) and JSON (Epoch) respectively. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change the output at system level for JSON, use an EDM.String to represent the formated datetime you want. For UI which will use the Epoch datetime, there are several libraries that convert Epoch to human readable time. Our UI devs prefer the latter but it depends on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802709#M4423328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-06T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Date Format</title>
      <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802710#M4423329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the matter of fact, we don't have a real problem with Epoch format. The main issue is with MicrosoftDateFormat format (the hybrid "/Date(Epoch)/").&lt;/P&gt;&lt;P&gt;It will require our service consumers to develop a special (very simple) parser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 05:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802710#M4423329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-07T05:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Date Format</title>
      <link>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802711#M4423330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shai &lt;/P&gt;&lt;P&gt;The way we did was to do an ABAP coding and then based on the date being recieved using Fm to convert the date to the dd/mm/yyyy format by using concatenate statement and passing to a new variable and then sending it to UI layer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 23:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-date-format/qaa-p/11802711#M4423330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-07T23:54:32Z</dc:date>
    </item>
  </channel>
</rss>

