<?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 Passing date to featureservice... in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121679#M2910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am editing feature service and everything works fine except Dates. Can not populate correct dates. I am using ArcSDE (10 and SQL server 2008R2 and data is stored as DATETIME2(7)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just need to know that how can i get.. "1199145600000" for "1 Jan 2008 00:00:00 GMT" because if i use "1199145600000" i get the right date populated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also i can only pass numbers no strings..if i try to pass something like "10/2/2011"..it just failed...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Syntax: time=&amp;lt;timeInstant&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example: time=1199145600000 (1 Jan 2008 00:00:00 GMT) [/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the URL from where i got this example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/fsquery.html"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/fsquery.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 20:29:51 GMT</pubDate>
    <dc:creator>ZahidChaudhry</dc:creator>
    <dc:date>2011-10-06T20:29:51Z</dc:date>
    <item>
      <title>Passing date to featureservice...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121679#M2910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am editing feature service and everything works fine except Dates. Can not populate correct dates. I am using ArcSDE (10 and SQL server 2008R2 and data is stored as DATETIME2(7)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just need to know that how can i get.. "1199145600000" for "1 Jan 2008 00:00:00 GMT" because if i use "1199145600000" i get the right date populated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also i can only pass numbers no strings..if i try to pass something like "10/2/2011"..it just failed...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Syntax: time=&amp;lt;timeInstant&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example: time=1199145600000 (1 Jan 2008 00:00:00 GMT) [/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the URL from where i got this example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/fsquery.html"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/fsquery.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 20:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121679#M2910</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2011-10-06T20:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing date to featureservice...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121680#M2911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Zahid,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var bDate1:Date = new Date(2011,10,2,0,0,01);
//When you pass the date use bDate1.time;
//Notice the 01 for the seconds that will take care of the REST date time issue.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121680#M2911</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T07:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing date to featureservice...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121681#M2912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Zahid,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Try this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var bDate1:Date = new Date(2011,10,2,0,0,01);
//When you pass the date use bDate1.time;
//Notice the 01 for the seconds that will take care of the REST date time issue.&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to mention that i am not using ESRI API. But i will try this in the morning. All i want is Date i am not worried about time... (2011,10,2)...will try in the morning and see if it works...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-date-to-featureservice/m-p/121681#M2912</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2021-12-11T07:02:32Z</dc:date>
    </item>
  </channel>
</rss>

