<?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 Converting esriFieldTypeDate numeric value to a proper DateTime value in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76997#M6988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGIS REST service is returning the value of a date column&amp;nbsp; as 1185840000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me how in this world that can be converted to a proper date time in C#?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 02:08:03 GMT</pubDate>
    <dc:creator>SanthoshKumar3</dc:creator>
    <dc:date>2013-03-08T02:08:03Z</dc:date>
    <item>
      <title>Converting esriFieldTypeDate numeric value to a proper DateTime value</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76997#M6988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGIS REST service is returning the value of a date column&amp;nbsp; as 1185840000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me how in this world that can be converted to a proper date time in C#?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 02:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76997#M6988</guid>
      <dc:creator>SanthoshKumar3</dc:creator>
      <dc:date>2013-03-08T02:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting esriFieldTypeDate numeric value to a proper DateTime value</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76998#M6989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sansan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The date value you mentioned is epoch time,which is defined as the number of seconds since midnight (UTC) on 1st January 1970.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public DateTime FromUnixTime(long unixTime) { &amp;nbsp;&amp;nbsp;&amp;nbsp; var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); &amp;nbsp;&amp;nbsp;&amp;nbsp; return epoch.AddSeconds(unixTime); }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 09:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76998#M6989</guid>
      <dc:creator>RahulMetangale1</dc:creator>
      <dc:date>2013-03-08T09:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting esriFieldTypeDate numeric value to a proper DateTime value</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76999#M6990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rahul, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the explanation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just changed the AddSeconds to AddMilliSeconds and it worked like charm. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Santhosh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-esrifieldtypedate-numeric-value-to-a/m-p/76999#M6990</guid>
      <dc:creator>SanthoshKumar3</dc:creator>
      <dc:date>2013-03-08T13:19:56Z</dc:date>
    </item>
  </channel>
</rss>

